C# 클래스 BlueCollar.Dashboard.DashboardRouter

Provides simple static routing for the dashboard.
파일 보기 프로젝트 열기: ChadBurggraf/blue-collar 1 사용 예제들

공개 메소드들

메소드 설명
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