Database Reference
In-Depth Information
Using the Fluent Configure.With()
There are many configuration settings for IBus. We will be discussing several of them as
they relate to sagas and persisters. There are too many different configurations to discuss in
their entirety and many are not used in most common configurations. NSB can be explicitly
configured to accommodate many, many situations. For a more complete listing of some of
the configurations, as far as available functions are concerned, please refer to ht-
tp://www.nudoq.org/#!/Packages/NServiceBus/NServiceBus.Core/Configure .
1. Let's start by breaking down a sample IBus configuration:
2. For IBus, the first piece to define is the IoC, we have to set the container, ht-
tp://docs.particular.net/NServiceBus/containers :
DefaultBuilder() : This is the default Autofac
NinjectBuilder() : This is the most popular C# IoC container found
at http://www.ninject.org/
StructureMapBuilder() : This can be found at ht-
tp://docs.structuremap.net/
UnityBuilder() : This can be found at http://unity.codeplex.com/
SpringBuilder() : This can be found at http://www.spring.net/
CastleWindsorBuilder() : This can be found at ht-
tp://www.castleproject.org/
AutofacBuilder() : This can be found at http://code.google.com/p/
autofac/
3. We have to ensure that the proper reference is installed; for instance, NHibern-
ate.Unity must be installed to use UnityBuilder .
4. Next, we want to ensure that the serialization is set. By default, XML serialization
is used. In Version 4.0, the serialization is set in front of the IBus' configuration,
Configure.With() .
Search WWH ::




Custom Search