Class RouteAttribute
Used to customize request routing at the service level.
Namespace: Neon.ModelGen
Assembly: Neon.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Interface)]
public class RouteAttribute : Attribute
Constructors
RouteAttribute(string)
Constructor.
Declaration
public RouteAttribute(string template = null)
Parameters
Type | Name | Description |
---|---|---|
string | template | The optional routing template. |
Properties
Name
The route name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Order
NOT SUPPORTED: The order in which the route is to be applied.
Declaration
public int Order { get; set; }
Property Value
Type | Description |
---|---|
int |
Template
The route template.
Declaration
public string Template { get; set; }
Property Value
Type | Description |
---|---|
string |