RouteContext Class¶
A context object for Microsoft.AspNetCore.Routing.IRouter.RouteAsync(Microsoft.AspNetCore.Routing.RouteContext)
.
- Namespace
Microsoft.AspNetCore.Routing
- Assemblies
- Microsoft.AspNetCore.Routing.Abstractions
Constructors¶
-
RouteContext
(Microsoft.AspNetCore.Http.HttpContext)¶ Creates a new
Microsoft.AspNetCore.Routing.RouteContext
for the provided <em>httpContext</em>.Arguments: httpContext (Microsoft.AspNetCore.Http.HttpContext) – The Microsoft.AspNetCore.Http.HttpContext
associated with the current request.public RouteContext(HttpContext httpContext)
-
Properties¶
-
Microsoft.AspNetCore.Routing.RouteContext.
Handler
¶ Gets or sets the handler for the request. An
Microsoft.AspNetCore.Routing.IRouter
should setMicrosoft.AspNetCore.Routing.RouteContext.Handler
when it matches.Return type: Microsoft.AspNetCore.Http.RequestDelegate public RequestDelegate Handler { get; set; }
-
Microsoft.AspNetCore.Routing.RouteContext.
HttpContext
¶ Gets the
Microsoft.AspNetCore.Http.HttpContext
associated with the current request.Return type: Microsoft.AspNetCore.Http.HttpContext public HttpContext HttpContext { get; }
-
Microsoft.AspNetCore.Routing.RouteContext.
RouteData
¶ Gets or sets the
Microsoft.AspNetCore.Routing.RouteData
associated with the current context.Return type: Microsoft.AspNetCore.Routing.RouteData public RouteData RouteData { get; set; }
-