Constructor RegexRoute
Namespace: Sisk.Core.Routing
Assembly: Sisk.Core.dll
RegexRoute(RouteMethod, string, RouteAction)
Initializes a new instance of the RegexRoute class.
public RegexRoute(RouteMethod method, string pattern, RouteAction action)
Parameters
method RouteMethod
The HTTP method for this route.
pattern string
The regular expression pattern for this route.
action RouteAction
The 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
method RouteMethod
The HTTP method for this route.
pattern string
The regular expression pattern for this route.
name string?
The name of this route.
action RouteAction
The action to be executed when this route is matched.
beforeCallback IRequestHandler[]?
The callback to be executed before the action.
                                    English
                                
                                    Русский
                                
                                    Português
                                
                                    Español
                                
                                    Deutsch
                                
                                    中文 (简体)
                                
                                    日本語