Rebus.Autofac/Config/ContainerBuilderExtensions.cs
/// <summary>
/// Makes the necessary registrations in the given <paramref name="containerBuilder"/>, invoking the
/// <paramref name="configure"/> callback when Rebus needs to be configured. You can only have a single
/// bus and set of handlers registered within an Autofac IoC container. If you wish to have multiple handlers, you will need
/// to split up the bus into a one way bus, and multiple handler registrations.
/// </summary>
Makes the necessary registrations in the given , invoking the
callback when Rebus needs to be configured. You can only have a single
bus and set of handlers registered within an Autofac IoC container. If you wish to have multiple handlers, you will need
to split up the bus into a one way bus, and multiple handler registrations.
Makes the necessary registrations in the given invoking the callback when Rebus needs to be configured . You can only have a single bus and set of handlers registered within an Autofac IoC container . If you wish to have multiple handlers you will need to split up the bus into a one way bus and multiple handler registrations .
public static void RegisterRebus(this ContainerBuilder containerBuilder, Func<RebusConfigurer, RebusConfigurer> configure, bool startBus = true, bool enablePolymorphicDispatch = false, bool disableMultipleRegistrationsCheck = false)
        {
            if (containerBuilder == null) throw new ArgumentNullException(nameof(containerBuilder));
            if (configure == null) throw new ArgumentNullException(nameof(configure));
            new AutofacHandlerActivator(containerBuilder, (configurer, context) => configure(configurer), startBus, enablePolymorphicDispatch, !disableMultipleRegistrationsCheck);
        }
public static void RegisterRebus ( this ContainerBuilder containerBuilder , Func < RebusConfigurer , RebusConfigurer > configure , bool startBus = true , bool enablePolymorphicDispatch = false , bool disableMultipleRegistrationsCheck = false ) { if ( containerBuilder == null ) throw new ArgumentNullException ( nameof ( containerBuilder ) ) ; if ( configure == null ) throw new ArgumentNullException ( nameof ( configure ) ) ; new AutofacHandlerActivator ( containerBuilder , ( configurer , context ) => configure ( configurer ) , startBus , enablePolymorphicDispatch , ! disableMultipleRegistrationsCheck ) ; }
Makes the necessary registrations in the given , invoking the
callback when Rebus needs to be configured.
Makes the necessary registrations in the given invoking the callback when Rebus needs to be configured .
ContainerBuilder
this
configure
Func<RebusConfigurer, RebusConfigurer>
startBus
bool
enablePolymorphicDispatch
bool
disableMultipleRegistrationsCheck
bool