Freigeben über


MvcCoreMvcCoreBuilderExtensions.AddControllersAsServices Methode

Definition

Registriert ermittelte Controller als Dienste in IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddControllersAsServices (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddControllersAsServices : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddControllersAsServices (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Parameter

Gibt zurück

Die IMvcCoreBuilder.

Gilt für: