AutofacBuilder Class

Summary

AutofacBuilder. Implements the ConventionBuilder<TBuilder, TConvention, TDelegate> Implements the IAutofacBuilder Implements the IServicesBuilder Implements the IAutofacConventionContext
graph BT Type-->Base0["ConventionBuilder<IAutofacBuilder, IAutofacConvention, AutofacConventionDelegate>"] Base0-->Base1["ConventionContainerBuilder<IAutofacBuilder, IAutofacConvention, AutofacConventionDelegate>"] Base1-->Base2["Object"] Type-.->Interface0["IAutofacBuilder"] click Interface0 "/api/Rocket.Surgery.Extensions.Autofac/IAutofacBuilder" Type-.->Interface1["IConventionBuilder<IAutofacBuilder, IAutofacConvention, AutofacConventionDelegate>"] Type-.->Interface2["IConventionContainer<IAutofacBuilder, IAutofacConvention, AutofacConventionDelegate>"] Type-.->Interface3["IServicesBuilder"] click Interface3 "/api/Rocket.Surgery.Extensions.DependencyInjection/IServicesBuilder" Type-.->Interface4["IConventionBuilder<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>"] Type-.->Interface5["IConventionContainer<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>"] Type-.->Interface6["IServiceConventionContext"] click Interface6 "/api/Rocket.Surgery.Extensions.DependencyInjection/IServiceConventionContext" Type-.->Interface7["IAutofacConventionContext"] click Interface7 "/api/Rocket.Surgery.Extensions.Autofac/IAutofacConventionContext" Type-.->Interface8["IConventionContext"] click Interface8 "/api/Rocket.Surgery.Conventions/IConventionContext" Type["AutofacBuilder"] class Type type-node

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