ServicesBuilder Class

Summary

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

Syntax

public class ServicesBuilder : 
    ConventionBuilder<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>, 
    IServicesBuilder, 
    IConventionBuilder<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>, 
    IConventionContainer<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>, 
    IServiceConventionContext, 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.
ServiceProviderOptions ServiceProviderOptions
Gets the service provider options.
Services IServiceCollection
Gets the services.

Methods

Name Value Summary
Build() IServiceProvider
Builds the root container, and returns the lifetime scopes for the application and system containers

Extension Methods

See Also