Class LocationRouteContext
Describes the final named-route or MVC-action destination of a generated Location header.
Supplied to HttpResponseOptionsBuilder<TDomain>.WithLocationRouteResolver at execution time.
public sealed class LocationRouteContext
- Inheritance
-
LocationRouteContext
- Inherited Members
- Extension Methods
Properties
ActionName
The destination action name, or null for a named-route destination.
public string? ActionName { get; }
Property Value
ControllerName
The explicitly configured destination controller, or null to use route values and then the current controller. Always null for named-route destinations.
public string? ControllerName { get; }
Property Value
HttpContext
The request generating the response.
public HttpContext HttpContext { get; }
Property Value
RouteName
The named destination, or null for an MVC-action destination.
public string? RouteName { get; }
Property Value
RouteValues
The per-execution copy of the selected route values, after single-key resolvers have run. Mutations affect link generation without changing the selector's original dictionary.
public RouteValueDictionary RouteValues { get; }