Constructor RegexRoute
RegexRoute(RouteMethod, string, RouteAction)
Initializes a new instance of the RegexRoute class.
public RegexRoute(RouteMethod method, string pattern, RouteAction action)
Parameters
methodRouteMethodThe HTTP method for this route.
patternstringThe regular expression pattern for this route.
actionRouteActionThe action to be executed when this route is matched.
RegexRoute(RouteMethod, string, string?, RouteAction, IRequestHandler[]?)
Initializes a new instance of the RegexRoute class.
public RegexRoute(RouteMethod method, string pattern, string? name, RouteAction action, IRequestHandler[]? beforeCallback)
Parameters
methodRouteMethodThe HTTP method for this route.
patternstringThe regular expression pattern for this route.
namestringThe name of this route.
actionRouteActionThe action to be executed when this route is matched.
beforeCallbackIRequestHandler[]The callback to be executed before the action.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語