Compartilhar via


RoutingBuilderExtensions.UseRouter Método

Definição

Sobrecargas

UseRouter(IApplicationBuilder, IRouter)

Adiciona um RouterMiddleware middleware ao especificado IApplicationBuilder com o especificado IRouter.

UseRouter(IApplicationBuilder, Action<IRouteBuilder>)

Adiciona um RouterMiddleware middleware ao especificado IApplicationBuilder com o IRouter compilado de configurado IRouteBuilder.

UseRouter(IApplicationBuilder, IRouter)

Origem:
RoutingBuilderExtensions.cs
Origem:
RoutingBuilderExtensions.cs
Origem:
RoutingBuilderExtensions.cs

Adiciona um RouterMiddleware middleware ao especificado IApplicationBuilder com o especificado 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

Parâmetros

builder
IApplicationBuilder

O IApplicationBuilder ao qual adicionar o middleware.

router
IRouter

O IRouter a ser usado para solicitações de roteamento.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a

UseRouter(IApplicationBuilder, Action<IRouteBuilder>)

Origem:
RoutingBuilderExtensions.cs
Origem:
RoutingBuilderExtensions.cs
Origem:
RoutingBuilderExtensions.cs

Adiciona um RouterMiddleware middleware ao especificado IApplicationBuilder com o IRouter compilado de configurado IRouteBuilder.

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

Parâmetros

builder
IApplicationBuilder

O IApplicationBuilder ao qual adicionar o middleware.

action
Action<IRouteBuilder>

Um Action<T> para configurar o IRouteBuilder fornecido.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a