MvcCoreMvcBuilderExtensions.AddControllersAsServices(IMvcBuilder) Methode

Definition

Registriert ermittelte Controller als Dienste in IServiceCollection.

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

Parameter

builder
IMvcBuilder

Die IMvcBuilder.

Gibt zurück

Die IMvcBuilder.

Gilt für: