C# Класс Switcheroo.Toggles.DateRangeToggle

A feature toggle that turns on within a specific date range.
Наследование: DynamicFeatureToggleBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

Защищенные методы

Метод Описание
Evaluate ( ) : bool

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

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

DateRangeToggle() публичный Метод

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.
Результат System

Evaluate() защищенный Метод

Evaluates the dynamic rules for this instance to determine whether it is enabled.
protected Evaluate ( ) : bool
Результат bool

ToString() публичный Метод

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
Результат string