Class RouterModule
Indicates that extended class supports router modules, which allows the management of routes, request handlers and prefixes.
public abstract class RouterModule
- Inheritance
-
RouterModule
- Inherited Members
Constructors
Properties
- Prefix
Gets or sets the router prefix for this class. This property overrides any value defined by RoutePrefixAttribute set in this class.
- RequestHandlers
Gets or sets an list of IRequestHandler this RouterModule runs.
Methods
- HasRequestHandler(IRequestHandler)
Registers an IRequestHandler on all routes defined by this module.
- OnRouteCreating(Route)
This method is called before a route is defined in the router and after it is created in this class, so its attributes and parameters can be modified. This method must be overloaded in the extending class and must not be called directly.
- OnSetup(Router)
Method that is called when an Router is defining routes from the current RouterModule.