다음을 통해 공유


MvcCoreMvcCoreBuilderExtensions.AddControllersAsServices 메서드

정의

검색된 컨트롤러를 에서 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

매개 변수

반환

IMvcCoreBuilder

적용 대상