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

A toggle that has other feature toggles as dependencies.
Наследование: FeatureToggleBase, IDependencyFeatureToggle
Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

Метод Описание
HasCycle ( PersistentList visitedToggles = null ) : bool

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

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

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

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

Asserts that the configuration of this feautre toggle is valid.
public AssertConfigurationIsValid ( ) : void
Результат void

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

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

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

Freezes this instance so that no more changes can be made to it.
public Freeze ( ) : void
Результат void

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

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