AutofacBuilder Class

Summary

AutofacBuilder. Implements the ConventionBuilder<TBuilder, TConvention, TDelegate> Implements the IAutofacBuilder Implements the IServicesBuilder Implements the IAutofacConventionContext
AutofacBuilder
ConventionBuilder
ConventionContainerBuilder
Object
IConventionBuilder
IConventionContainer
IConventionBuilder
IConventionContainer

Syntax

public class AutofacBuilder : 
    ConventionBuilder<IAutofacBuilder, IAutofacConvention, AutofacConventionDelegate>, 
    IAutofacBuilder, 
    IConventionBuilder<IAutofacBuilder, IAutofacConvention, AutofacConventionDelegate>, 
    IConventionContainer<IAutofacBuilder, IAutofacConvention, AutofacConventionDelegate>, 
    IServicesBuilder, 
    IConventionBuilder<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>, 
    IConventionContainer<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>, 
    IServiceConventionContext, IAutofacConventionContext, IConventionContext

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Properties

Name Value Summary
Configuration IConfiguration
Gets the configuration.
Environment IRocketEnvironment
The environment that this convention is running Based on IHostEnvironment / IHostingEnvironment
Logger ILogger
A logger that is configured to work with each convention item
OnBuild IObservable<IServiceProvider>
Gets the on build.
OnContainerBuild IObservable<IContainer>
Gets the on container build.
Services IServiceCollection
Gets the services.

Methods

Name Value Summary
Build() IContainer
Builds this instance.
ConfigureContainer(ContainerBuilderDelegate) IAutofacConventionContext
Configures the container.

Extension Methods

See Also