Summary
ServicesBuilder.
Implements the
ConventionBuilder<TBuilder, TConvention, TDelegate>
Implements the IServicesBuilder
Implements the IServiceConvention
Implements the IServiceConventionContext
Implements the ServiceConventionDelegate
- Assembly
- Rocket
.Surgery .Extensions .DependencyInjection .dll - Namespace
- Rocket
.Surgery .Extensions .DependencyInjection - Interfaces
- Base Types
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 |
---|---|
Nullable |
|
NullableAttribute |
Constructors
Name | Summary |
---|---|
ServicesBuilder |
Initializes a new instance of the ServicesBuilder class.
|
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 |
Gets the on build.
|
Service |
Service |
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
Name | Value | Summary |
---|---|---|
SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|