Sdílet prostřednictvím


StartupBase<TBuilder>.CreateServiceProvider(IServiceCollection) Metoda

Definice

IServiceProvider Vytvoří instanci pro danou IServiceCollectioninstanci .

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

Chcete-li IServiceCollection přidat služby do.

Návraty

Hodnota IServiceProvider

Platí pro