Condividi tramite


DefaultServiceProviderFactory.CreateServiceProvider Metodo

Definizione

Crea un oggetto IServiceProvider dal generatore di contenitori.

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

Parametri

containerBuilder
IServiceCollection

Generatore di contenitori.

Restituisce

Provider di servizi appena creato.

Implementazioni

Si applica a