Sisk

Constructor

RegexRoute constructor

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

RegexRoute() #

Initializes a new instance of the RegexRoute class with no parameters.

C#
public RegexRoute()

RegexRoute(RouteMethod, string, RouteAction) #

Initializes a new instance of the RegexRoute class.

C#
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.

C#
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.

Type to search the documentation and the API reference.