Partilhar via


DefaultServiceProviderFactory.CreateServiceProvider Método

Definição

Cria um IServiceProvider no construtor de contêineres.

public:
 virtual IServiceProvider ^ CreateServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ containerBuilder);
public IServiceProvider CreateServiceProvider (Microsoft.Extensions.DependencyInjection.IServiceCollection containerBuilder);
abstract member CreateServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
override this.CreateServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
Public Function CreateServiceProvider (containerBuilder As IServiceCollection) As IServiceProvider

Parâmetros

containerBuilder
IServiceCollection

O construtor de contêineres.

Retornos

O provedor de serviços recém-criado.

Implementações

Aplica-se a