다음을 통해 공유


RoutingBuilderExtensions.UseRouter 메서드

정의

오버로드

UseRouter(IApplicationBuilder, IRouter)

지정된 를 사용하여 RouterMiddleware 지정된 IApplicationBuilder 에 미들웨어를 추가합니다 IRouter.

UseRouter(IApplicationBuilder, Action<IRouteBuilder>)

구성된 IRouteBuilder에서 RouterMiddleware 빌드된 를 사용하여 지정된 IApplicationBuilder 에 미들웨어를 IRouter 추가합니다.

UseRouter(IApplicationBuilder, IRouter)

Source:
RoutingBuilderExtensions.cs
Source:
RoutingBuilderExtensions.cs
Source:
RoutingBuilderExtensions.cs

지정된 를 사용하여 RouterMiddleware 지정된 IApplicationBuilder 에 미들웨어를 추가합니다 IRouter.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseRouter(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ builder, Microsoft::AspNetCore::Routing::IRouter ^ router);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRouter (this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, Microsoft.AspNetCore.Routing.IRouter router);
static member UseRouter : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Routing.IRouter -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRouter (builder As IApplicationBuilder, router As IRouter) As IApplicationBuilder

매개 변수

builder
IApplicationBuilder

IApplicationBuilder 미들웨어를 추가할 입니다.

router
IRouter

IRouter 라우팅 요청에 사용할 입니다.

반환

작업이 완료된 후 이 인스턴스에 대한 참조입니다.

적용 대상

UseRouter(IApplicationBuilder, Action<IRouteBuilder>)

Source:
RoutingBuilderExtensions.cs
Source:
RoutingBuilderExtensions.cs
Source:
RoutingBuilderExtensions.cs

구성된 IRouteBuilder에서 RouterMiddleware 빌드된 를 사용하여 지정된 IApplicationBuilder 에 미들웨어를 IRouter 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseRouter(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ builder, Action<Microsoft::AspNetCore::Routing::IRouteBuilder ^> ^ action);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRouter (this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, Action<Microsoft.AspNetCore.Routing.IRouteBuilder> action);
static member UseRouter : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.Routing.IRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRouter (builder As IApplicationBuilder, action As Action(Of IRouteBuilder)) As IApplicationBuilder

매개 변수

builder
IApplicationBuilder

IApplicationBuilder 미들웨어를 추가할 입니다.

action
Action<IRouteBuilder>

제공된 IRouteBuilder를 구성하는 Action<T>입니다.

반환

작업이 완료된 후 이 인스턴스에 대한 참조입니다.

적용 대상