Rebus.Autofac/Config/ContainerBuilderExtensions.cs
/// <summary>
/// Registers all Rebus message handler types found in the assembly of <paramref name="handlerType"/> under the namespace that type lives
/// under. So all types within the same namespace will get mapped as handlers, but not types under other namespaces. This allows
/// you to separate messages for specific queues by namespace and register them all in one go.
/// </summary>
Registers all Rebus message handler types found in the assembly of  under the namespace that type lives
under. So all types within the same namespace will get mapped as handlers, but not types under other namespaces. This allows
you to separate messages for specific queues by namespace and register them all in one go.
Registers all Rebus message handler types found in the assembly of under the namespace that type lives under . So all types within the same namespace will get mapped as handlers but not types under other namespaces . This allows you to separate messages for specific queues by namespace and register them all in one go .
public static void RegisterHandlersFromAssemblyNamespaceOf(this ContainerBuilder builder, Type handlerType, PropertyWiringOptions propertyWiringOptions = PropertyWiringOptions.None)
        {
            if (builder == null) throw new ArgumentNullException(nameof(builder));
            if (handlerType == null) throw new ArgumentNullException(nameof(handlerType));
            builder.RegisterAssemblyTypes(handlerType.Assembly)
                .Where(t => t.IsClass && !t.IsAbstract && t.GetInterfaces().Any(IsRebusHandler) && t.Namespace != null && t.Namespace.StartsWith(handlerType.Namespace ?? string.Empty))
                .As(GetImplementedHandlerInterfaces)
                .InstancePerDependency()
                .PropertiesAutowired(propertyWiringOptions);
        }
public static void RegisterHandlersFromAssemblyNamespaceOf ( this ContainerBuilder builder , Type handlerType , PropertyWiringOptions propertyWiringOptions = PropertyWiringOptions . None ) { if ( builder == null ) throw new ArgumentNullException ( nameof ( builder ) ) ; if ( handlerType == null ) throw new ArgumentNullException ( nameof ( handlerType ) ) ; builder . RegisterAssemblyTypes ( handlerType . Assembly ) . Where ( t => t . IsClass && ! t . IsAbstract && t . GetInterfaces ( ) . Any ( IsRebusHandler ) && t . Namespace != null && t . Namespace . StartsWith ( handlerType . Namespace ?? string . Empty ) ) . As ( GetImplementedHandlerInterfaces ) . InstancePerDependency ( ) . PropertiesAutowired ( propertyWiringOptions ) ; }
Registers all Rebus message handler types found in the assembly of  under the namespace that type lives
under.
Registers all Rebus message handler types found in the assembly of under the namespace that type lives under .
ContainerBuilder
this
handlerType
Type
propertyWiringOptions
PropertyWiringOptions