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.RouteContextfor the provided <em>httpContext</em>.Arguments: httpContext (Microsoft.AspNetCore.Http.HttpContext) – The Microsoft.AspNetCore.Http.HttpContextassociated 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.IRoutershould setMicrosoft.AspNetCore.Routing.RouteContext.Handlerwhen it matches.Return type: Microsoft.AspNetCore.Http.RequestDelegate public RequestDelegate Handler { get; set; }
-
Microsoft.AspNetCore.Routing.RouteContext.HttpContext¶ Gets the
Microsoft.AspNetCore.Http.HttpContextassociated 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.RouteDataassociated with the current context.Return type: Microsoft.AspNetCore.Routing.RouteData public RouteData RouteData { get; set; }
-