C# Class Switcheroo.Toggles.DependencyToggle

A toggle that has other feature toggles as dependencies.
Inheritance: FeatureToggleBase, IDependencyFeatureToggle
Afficher le fichier Open project: rhanekom/Switcheroo Class Usage Examples

Méthodes publiques

Méthode Description
AddDependency ( IFeatureToggle toggle ) : void

Adds the specified feature toggle as a dependency to this one.

AssertConfigurationIsValid ( ) : void

Asserts that the configuration of this feautre toggle is valid.

DependencyToggle ( IFeatureToggle innerToggle ) : System.Collections.Concurrent

Initializes a new instance of the DependencyToggle class.

Freeze ( ) : void

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

IsEnabled ( ) : bool

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

Private Methods

Méthode Description
HasCycle ( PersistentList visitedToggles = null ) : bool

Method Details

AddDependency() public méthode

Adds the specified feature toggle as a dependency to this one.
public AddDependency ( IFeatureToggle toggle ) : void
toggle IFeatureToggle The toggle to add as a dependency.
Résultat void

AssertConfigurationIsValid() public méthode

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

DependencyToggle() public méthode

Initializes a new instance of the DependencyToggle class.
public DependencyToggle ( IFeatureToggle innerToggle ) : System.Collections.Concurrent
innerToggle IFeatureToggle The inner toggle for evaluation of this toggle.
Résultat System.Collections.Concurrent

Freeze() public méthode

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

IsEnabled() public méthode

Evaluates the dynamic rules for this instance to determine whether it is enabled.
public IsEnabled ( ) : bool
Résultat bool