Sdílet prostřednictvím


StartupBase.CreateServiceProvider(IServiceCollection) Metoda

Definice

IServiceProvider Vytvoří instanci pro daný ConfigureServices(IServiceCollection)objekt .

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

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

Návraty

Hodnota IServiceProvider

Platí pro