Table of Contents

Class LocationRouteContext

Namespace
Trellis.Asp
Assembly
Trellis.Asp.dll

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

string

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

string

HttpContext

The request generating the response.

public HttpContext HttpContext { get; }

Property Value

HttpContext

RouteName

The named destination, or null for an MVC-action destination.

public string? RouteName { get; }

Property Value

string

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; }

Property Value

RouteValueDictionary