Condividi tramite


RoutingBuilderExtensions.UseRouter Metodo

Definizione

Overload

UseRouter(IApplicationBuilder, IRouter)

Aggiunge un RouterMiddleware middleware all'oggetto specificato con l'oggetto specificato IApplicationBuilderIRouter.

UseRouter(IApplicationBuilder, Action<IRouteBuilder>)

Aggiunge un RouterMiddleware middleware all'oggetto specificato IApplicationBuilder con l'oggetto IRouter compilato da configurato IRouteBuilder.

UseRouter(IApplicationBuilder, IRouter)

Origine:
RoutingBuilderExtensions.cs
Origine:
RoutingBuilderExtensions.cs
Origine:
RoutingBuilderExtensions.cs

Aggiunge un RouterMiddleware middleware all'oggetto specificato con l'oggetto specificato IApplicationBuilderIRouter.

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

Parametri

builder
IApplicationBuilder

Oggetto IApplicationBuilder da aggiungere al middleware.

router
IRouter

Oggetto IRouter da usare per le richieste di routing.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a

UseRouter(IApplicationBuilder, Action<IRouteBuilder>)

Origine:
RoutingBuilderExtensions.cs
Origine:
RoutingBuilderExtensions.cs
Origine:
RoutingBuilderExtensions.cs

Aggiunge un RouterMiddleware middleware all'oggetto specificato IApplicationBuilder con l'oggetto IRouter compilato da configurato 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

Parametri

builder
IApplicationBuilder

Oggetto IApplicationBuilder da aggiungere al middleware.

action
Action<IRouteBuilder>

Oggetto Action<T> per la configurazione dell'oggetto IRouteBuilder fornito.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a