C# 클래스 Switcheroo.Toggles.DependencyToggle

A toggle that has other feature toggles as dependencies.
상속: FeatureToggleBase, IDependencyFeatureToggle
파일 보기 프로젝트 열기: rhanekom/Switcheroo 1 사용 예제들

공개 메소드들

메소드 설명
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