C# Класс Simplify.Web.Routing.RouteMatcher

Provides HTTP route parser and matcher
Наследование: IRouteMatcher
Показать файл Открыть проект

Открытые методы

Метод Описание
Match ( string currentPath, string controllerPath ) : IRouteMatchResult

Matches the current path with controller path. Only "/", "/action", "/action/{userName}/{id}", "/action/{id:int}", "/{id}" etc. route types allowed

RouteMatcher ( IControllerPathParser controllerPathParser ) : System

Initializes a new instance of the RouteMatcher class.

Приватные методы

Метод Описание
GetBoolArrayParameterValue ( string source ) : IList
GetBoolParameterValue ( string source ) : object
GetDecimalArrayParameterValue ( string source ) : IList
GetDecimalParameterValue ( string source ) : object
GetIntArrayParameterValue ( string source ) : IList
GetIntParameterValue ( string source ) : object
GetParameterValue ( PathParameter pathParameter, string source ) : object
GetStringArrayParameterValue ( string source ) : IList

Описание методов

Match() публичный Метод

Matches the current path with controller path. Only "/", "/action", "/action/{userName}/{id}", "/action/{id:int}", "/{id}" etc. route types allowed
public Match ( string currentPath, string controllerPath ) : IRouteMatchResult
currentPath string The current path.
controllerPath string The controller path.
Результат IRouteMatchResult

RouteMatcher() публичный Метод

Initializes a new instance of the RouteMatcher class.
public RouteMatcher ( IControllerPathParser controllerPathParser ) : System
controllerPathParser IControllerPathParser The controller path parser.
Результат System