Rebus.Autofac/Config/ContainerBuilderExtensions.cs
/// <summary>
/// Registers the given type as a Rebus message handler
/// </summary>
Registers the given type as a Rebus message handler
Registers the given type as a Rebus message handler
public static void RegisterHandler<THandler>(this ContainerBuilder builder, PropertyWiringOptions propertyWiringOptions = PropertyWiringOptions.None) where THandler : IHandleMessages
        {
            if (builder == null) throw new ArgumentNullException(nameof(builder));
            var implementedHandlerTypes = GetImplementedHandlerInterfaces(typeof(THandler)).ToArray();
            builder.RegisterType(typeof(THandler)).As(implementedHandlerTypes)
                .InstancePerDependency()
                .PropertiesAutowired(propertyWiringOptions);
        }
public static void RegisterHandler < THandler > ( this ContainerBuilder builder , PropertyWiringOptions propertyWiringOptions = PropertyWiringOptions . None ) where THandler : IHandleMessages { if ( builder == null ) throw new ArgumentNullException ( nameof ( builder ) ) ; var implementedHandlerTypes = GetImplementedHandlerInterfaces ( typeof ( THandler ) ) . ToArray ( ) ; builder . RegisterType ( typeof ( THandler ) ) . As ( implementedHandlerTypes ) . InstancePerDependency ( ) . PropertiesAutowired ( propertyWiringOptions ) ; }
Registers the given type as a Rebus message handler
Registers the given type as a Rebus message handler
ContainerBuilder
this
propertyWiringOptions
PropertyWiringOptions