Interface IDirectRouteBuilder
Defines a builder that creates direct routes to actions (attribute routes).
public interface IDirectRouteBuilder
Properties
Actions
Gets the action descriptors to which to create a route.
IReadOnlyCollection<HttpActionDescriptor> Actions { get; }
Property Value
- IReadOnlyCollection<HttpActionDescriptor>
The action descriptors to which to create a route.
Constraints
Gets or sets the route constraints.
IDictionary<string, object> Constraints { get; set; }
Property Value
- IDictionary<string, object>
The route constraints.
DataTokens
Gets or sets the route data tokens.
IDictionary<string, object> DataTokens { get; set; }
Property Value
- IDictionary<string, object>
The route data tokens.
Defaults
Gets or sets the route defaults.
IDictionary<string, object> Defaults { get; set; }
Property Value
- IDictionary<string, object>
The route defaults.
Name
Gets or sets the route name, if any; otherwise null.
string Name { get; set; }
Property Value
- string
The route name, if any; otherwise null.
Order
Gets or sets the route order.
int Order { get; set; }
Property Value
- int
The route order.
Precedence
Gets or sets the route precedence.
decimal Precedence { get; set; }
Property Value
- decimal
The route precedence.
TargetIsAction
Gets a value indicating whether the route is configured at the action or controller level.
bool TargetIsAction { get; }
Property Value
- bool
true when the route is configured at the action level; otherwise false (if the route is configured at the controller level).
Template
Gets or sets the route template.
string Template { get; set; }
Property Value
- string
The route template.
Methods
Build()
Creates a route entry based on the current property values.
RouteEntry Build()
Returns
- RouteEntry
The route entry created.