Share via


MvcCoreMvcCoreBuilderExtensions.AddControllersAsServices Method

Definition

Registers discovered controllers as services in the 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

Parameters

Returns

The IMvcCoreBuilder.

Applies to