Database Reference
In-Depth Information
Interface configurations
Instead of using the IBus' configuration, or
app.config
configuration, NSB can use the
Host configuration by extending the
EndpointConfigclasses
. These tables are not
to be all inclusive, but a starting point to understand the various pieces of IBus:
Name
Description
Detailed link
Here, implementers will be called after NSer-
viceBus.Configure.With completes and a container has been set.
INeedInitialization
Here, implementers are invoked when a configuration is complete.
Also, implementers are resolved from the container and so have
access to full DI.
IWantToRunWhenConfigurationIsComplete
In this interface, Start and Stop implementers will be invoked
when the endpoint starts up. A dependency injection is provided
for these types.
IWantToRunWhenBusStartsAndStops
We have the addition of the following interfaces defined at the root of the NServiceBus
code:
Name
Description
Detailed link
IConfigureThisEndpoint
This indicates that the implementing class will specify the configuration.
If you want to specify your own container or serializer, implement this interface
on the class that implements
IConfigureThisEndpoint
. Implementers
will be invoked before the endpoint starts up. A dependency injection is not
provided for these types.
IWantCustomInitialization
If you want to specify your own logging, implement this interface on the class
that implements
IConfigureThisEndpoint
.
IWantCustomLogging