O'Reilly logo

Learning NServiceBus by David Boike

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Profiles

In a lot of software systems, you'll either see a litany of different settings in a configuration file, or a single configuration value and a huge wall of settings in a switch statement in code. Not so with NServiceBus. NServiceBus uses a concept called profile to activate different options within an endpoint based on environment or capability.

Tip

Many of the dependency injection containers support a similar profile feature. Be sure to check the documentation for your favorite one!

A profile can be activated on an endpoint by including its full class name as a command line parameter, or by including it with the install options when installing an endpoint as a service. For instance, to run an endpoint with the Lite profile, as we have done ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required