Partilhar via


MvcCoreMvcCoreBuilderExtensions.AddControllersAsServices Método

Definição

Registra controladores descobertos como serviços no 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

Parâmetros

Retornos

O IMvcCoreBuilder.

Aplica-se a