Udostępnij za pośrednictwem


StartupBase.CreateServiceProvider(IServiceCollection) Metoda

Definicja

IServiceProvider Tworzy wystąpienie dla danego ConfigureServices(IServiceCollection)elementu .

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

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania usług.

Zwraca

Element IServiceProvider.

Dotyczy