Compartir a través de


MvcCoreMvcBuilderExtensions.AddControllersAsServices(IMvcBuilder) Método

Definición

Registra los controladores detectados como servicios en .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

Parámetros

Devoluciones

IMvcBuilder.

Se aplica a