IStartup.ConfigureServices(IServiceCollection) Methode

Definition

Registrieren Sie Dienste in .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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.

Gibt zurück

Gilt für: