Autofac.Extras.RegistrationAttributes.ContainerBuilderExtensions.RegisterType C# (CSharp) Method

RegisterType() private static method

private static RegisterType ( ContainerBuilder builder, Type type, IEnumerable attributes ) : void
builder ContainerBuilder
type System.Type
attributes IEnumerable
return void
        private static void RegisterType(ContainerBuilder builder, Type type, IEnumerable<IAutofacRegistrationAttribute> attributes)
        {
            var registrationBuilder = builder.RegisterType(type);

            foreach (IAutofacRegistrationAttribute attribute in attributes)
            {
                registrationBuilder = attribute.Register(registrationBuilder);
            }
        }