IStartup.ConfigureServices(IServiceCollection) Метод

Определение

Зарегистрируйте службы в 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

Параметры

services
IServiceCollection

Коллекция IServiceCollection, в которую добавляются службы.

Возвращаемое значение

Применяется к