Udostępnij za pośrednictwem


IStartup.ConfigureServices(IServiceCollection) Metoda

Definicja

Zarejestruj usługi w usłudze IServiceCollection.

public:
 IServiceProvider ^ ConfigureServices(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public IServiceProvider ConfigureServices (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member ConfigureServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
Public Function ConfigureServices (services As IServiceCollection) As IServiceProvider

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania usług.

Zwraca

Dotyczy