Aracılığıyla paylaş


StartupBase.CreateServiceProvider(IServiceCollection) Yöntem

Tanım

Belirli ConfigureServices(IServiceCollection)bir için bir IServiceProvider örnek oluşturur.

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

Parametreler

services
IServiceCollection

IServiceCollection Hizmetlerin ekleneceği yer.

Döndürülenler

IServiceProvider.

Şunlara uygulanır