RouteHandler Class

Definition

Supports implementing a handler that executes for a given route.

C#
public class RouteHandler : Microsoft.AspNetCore.Routing.IRouteHandler, Microsoft.AspNetCore.Routing.IRouter
Inheritance
RouteHandler
Implements

Constructors

RouteHandler(RequestDelegate)

Constructs a new RouteHandler instance.

Methods

GetRequestHandler(HttpContext, RouteData)

Gets a RequestDelegate to handle the request, based on the provided routeData.

GetVirtualPath(VirtualPathContext)

Returns the URL that is associated with the route details provided in context

RouteAsync(RouteContext)

Asynchronously routes based on the current context.

Applies to

Produk Versi
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0