다음을 통해 공유


MvcCoreMvcBuilderExtensions.AddControllersAsServices(IMvcBuilder) 메서드

정의

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

매개 변수

반환

IMvcBuilder

적용 대상