DefaultServiceProviderFactory Class

Definition

Default implementation of IServiceProviderFactory<TContainerBuilder>.

C#
public class DefaultServiceProviderFactory : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<Microsoft.Extensions.DependencyInjection.IServiceCollection>
Inheritance
DefaultServiceProviderFactory
Implements

Constructors

DefaultServiceProviderFactory()

Initializes a new instance of the DefaultServiceProviderFactory class with default options.

DefaultServiceProviderFactory(ServiceProviderOptions)

Initializes a new instance of the DefaultServiceProviderFactory class with the specified options.

Methods

CreateBuilder(IServiceCollection)

Creates a container builder from an IServiceCollection.

CreateServiceProvider(IServiceCollection)

Creates an IServiceProvider from the container builder.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)