Udostępnij za pośrednictwem


StartupBase<TBuilder>.CreateServiceProvider(IServiceCollection) Metoda

Definicja

IServiceProvider Tworzy wystąpienie dla danego IServiceCollectionelementu .

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

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania usług.

Zwraca

Element IServiceProvider.

Dotyczy