C# Class Switcheroo.Toggles.FeatureToggleBase

A base class for feature toggles that includes the name for toggles.
Inheritance: IFeatureToggle
Afficher le fichier Open project: rhanekom/Switcheroo

Méthodes publiques

Méthode Description
AssertConfigurationIsValid ( ) : void

Asserts that the configuration of this feautre toggle is valid.

Freeze ( ) : void

Freezes this instance so that no more changes can be made to it.

IsEnabled ( ) : bool

Determines whether this feature toggle instance is enabled.

ToString ( ) : string

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

Méthodes protégées

Méthode Description
FeatureToggleBase ( string name ) : System

Initializes a new instance of the FeatureToggleBase class.

GetEnabledValue ( ) : string

Gets the enabled value to display.

WriteProperty ( string name, string value ) : string

Writes the property in a common format to a string.

Method Details

AssertConfigurationIsValid() public méthode

Asserts that the configuration of this feautre toggle is valid.
public AssertConfigurationIsValid ( ) : void
Résultat void

FeatureToggleBase() protected méthode

Initializes a new instance of the FeatureToggleBase class.
If name is null.
protected FeatureToggleBase ( string name ) : System
name string The name of the feature toggle.
Résultat System

Freeze() public méthode

Freezes this instance so that no more changes can be made to it.
public Freeze ( ) : void
Résultat void

GetEnabledValue() protected méthode

Gets the enabled value to display.
protected GetEnabledValue ( ) : string
Résultat string

IsEnabled() public abstract méthode

Determines whether this feature toggle instance is enabled.
public abstract IsEnabled ( ) : bool
Résultat bool

ToString() public méthode

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

WriteProperty() protected méthode

Writes the property in a common format to a string.
protected WriteProperty ( string name, string value ) : string
name string The name.
value string The value.
Résultat string