Table of Contents

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.