C# Class Switcheroo.Toggles.DateRangeToggle

A feature toggle that turns on within a specific date range.
Inheritance: DynamicFeatureToggleBase
显示文件 Open project: rhanekom/Switcheroo Class Usage Examples

Public Methods

Method Description
DateRangeToggle ( string name, bool enabled, System.DateTime enabledFromDate, System.DateTime enabledToDate ) : System

Initializes a new instance of the DateRangeToggle class.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

Protected Methods

Method Description
Evaluate ( ) : bool

Evaluates the dynamic rules for this instance to determine whether it is enabled.

Method Details

DateRangeToggle() public method

Initializes a new instance of the DateRangeToggle class.
public DateRangeToggle ( string name, bool enabled, System.DateTime enabledFromDate, System.DateTime enabledToDate ) : System
name string The name of the feature toggle
enabled bool if set to true enable this feature toggle subject to the dynamic evaluation.
enabledFromDate System.DateTime The date that the feature is enabled from.
enabledToDate System.DateTime The date that the feature is enabled to.
return System

Evaluate() protected method

Evaluates the dynamic rules for this instance to determine whether it is enabled.
protected Evaluate ( ) : bool
return bool

ToString() public method

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
return string