Class RoutePrefixConvention
An implementation of IApplicationModelConvention that applies a route prefix to controllers derived from TrinityController.
public class RoutePrefixConvention : IApplicationModelConvention
- Inheritance
-
RoutePrefixConvention
- Implements
- Inherited Members
Constructors
RoutePrefixConvention(string)
Initializes a new instance of the RoutePrefixConvention class.
public RoutePrefixConvention(string prefix)
Parameters
prefix
stringThe route prefix to apply.
Methods
Apply(ApplicationModel)
Applies the route prefix to all controllers derived from TrinityController in the specified application
.
public void Apply(ApplicationModel application)
Parameters
application
ApplicationModelThe ApplicationModel to which the route prefix is applied.