C# Класс BlueCollar.Dashboard.DashboardRouter

Provides simple static routing for the dashboard.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetHandler ( string verb, string handlerRelativeUrl, IRepositoryFactory repositoryFactory ) : IDashboardHandler

Gets the IDashboardHandler mapped to the route identified by the given verb and handler-relative URL.

GetRoute ( string verb, string handlerRelativeUrl ) : IDashboardRoute

Gets the IDashboardRoute matching the given verb and handler-relative URL.

NormalizeHandlerRelativeUrl ( string handlerRelativeUrl ) : string

Normalizes a handler-relative URL in preparation for route matching.

NormalizeVerb ( string verb ) : string

Normalizes an HTTP verb in preparation for route matching.

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

GetHandler() публичный статический Метод

Gets the IDashboardHandler mapped to the route identified by the given verb and handler-relative URL.
public static GetHandler ( string verb, string handlerRelativeUrl, IRepositoryFactory repositoryFactory ) : IDashboardHandler
verb string The verb to get the handler for.
handlerRelativeUrl string The handler-relative URL to get the handler for.
repositoryFactory IRepositoryFactory The repository factory to use when instantiating the handler.
Результат IDashboardHandler

GetRoute() публичный статический Метод

Gets the IDashboardRoute matching the given verb and handler-relative URL.
public static GetRoute ( string verb, string handlerRelativeUrl ) : IDashboardRoute
verb string The verb to get the route for.
handlerRelativeUrl string The handler-relative URL to get the verb for.
Результат IDashboardRoute

NormalizeHandlerRelativeUrl() публичный статический Метод

Normalizes a handler-relative URL in preparation for route matching.
public static NormalizeHandlerRelativeUrl ( string handlerRelativeUrl ) : string
handlerRelativeUrl string The handler-relative URL to normalize.
Результат string

NormalizeVerb() публичный статический Метод

Normalizes an HTTP verb in preparation for route matching.
public static NormalizeVerb ( string verb ) : string
verb string The HTTP verb string to normalize.
Результат string