C# 클래스 BlueCollar.Dashboard.HandlerHelper

Provides a mixin of helpers for dashboard handlers.
파일 보기 프로젝트 열기: ChadBurggraf/blue-collar

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
HandlerHelper ( IDashboardHandler handler ) : System

Initializes a new instance of the HandlerHelper class.

PagingOffset ( int pageNumber ) : int

Gets the list paging offset to use for the given page number.

QueryDateValue ( string key ) : DateTime?

Gets a DateTime value from the query string.

QueryIntValue ( string key ) : int?

Gets an integer value from the query string.

RouteIntValue ( int index ) : long?

Gets an integer value from the route parameters.

메소드 상세

HandlerHelper() 공개 메소드

Initializes a new instance of the HandlerHelper class.
public HandlerHelper ( IDashboardHandler handler ) : System
handler IDashboardHandler The handler to initialize this instance with.
리턴 System

PagingOffset() 공개 메소드

Gets the list paging offset to use for the given page number.
public PagingOffset ( int pageNumber ) : int
pageNumber int The page number to get the list paging offset for.
리턴 int

QueryDateValue() 공개 메소드

Gets a DateTime value from the query string.
public QueryDateValue ( string key ) : DateTime?
key string The key to get the value from.
리턴 DateTime?

QueryIntValue() 공개 메소드

Gets an integer value from the query string.
public QueryIntValue ( string key ) : int?
key string The key to get the value from.
리턴 int?

RouteIntValue() 공개 메소드

Gets an integer value from the route parameters.
public RouteIntValue ( int index ) : long?
index int The index of the parameter to get the value from.
리턴 long?