Sisk

Method

Router.Map

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

Map(Route) #

Maps a route into this router.

C#
public void Map(Route route)

Parameters #

route Route

The route to map.

Map(IEnumerable<Route>) #

Maps a collection of routes into this router.

C#
public void Map(IEnumerable<Route> routes)

Parameters #

routes IEnumerable<Route>

The routes to map.

Map(RouteMethod, string, Delegate?) #

Maps a route using the specified method, path and action.

C#
public void Map(RouteMethod method, string path, Delegate? action)

Parameters #

method RouteMethod

The route method to match.

path string

The route path.

action Delegate?

The route action.

Map(RouteMethod, string, Delegate?, IRequestHandler[]?) #

Maps a route using the specified method, path, action and request handlers.

C#
public void Map(RouteMethod method, string path, Delegate? action, IRequestHandler[]? requestHandlers = null)

Parameters #

method RouteMethod

The route method to match.

path string

The route path.

action Delegate?

The route action.

requestHandlers IRequestHandler[]?

Handlers that run before or after the route action.

Type to search the documentation and the API reference.