C# Class BlueCollar.Dashboard.HandlerHelper

Provides a mixin of helpers for dashboard handlers.
Afficher le fichier Open project: ChadBurggraf/blue-collar

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

HandlerHelper() public méthode

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

PagingOffset() public méthode

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.
Résultat int

QueryDateValue() public méthode

Gets a DateTime value from the query string.
public QueryDateValue ( string key ) : DateTime?
key string The key to get the value from.
Résultat DateTime?

QueryIntValue() public méthode

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

RouteIntValue() public méthode

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.
Résultat long?