StartupBase.CreateServiceProvider(IServiceCollection) Método

Definição

Cria uma IServiceProvider instância para um determinado ConfigureServices(IServiceCollection).

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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar os serviços.

Retornos

O IServiceProvider.

Aplica-se a