C# 클래스 Switcheroo.FeatureConfiguration

A concrete implementation of a IFeatureConfiguration. This configuration stores and manages feature toggles by name.
상속: IFeatureConfiguration
파일 보기 프로젝트 열기: rhanekom/Switcheroo 1 사용 예제들

공개 메소드들

메소드 설명
Add ( IFeatureToggle toggle ) : void

Adds the specified feature toggle.

Clear ( ) : void

Clears this instance, removing all feature toggles from it.

Get ( string toggleName ) : IFeatureToggle

Gets the feature toggle with the specified name.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through the collection.

Initialize ( Action configuration ) : void

Initializes the this configuration using the specified configuration action.

IsEnabled ( string featureName ) : bool

Determines whether the feature toggle with the specified name is enabled.

WhatDoIHave ( ) : string

Diagnostics on what's currently contained in this configuration instance.

비공개 메소드들

메소드 설명
System ( ) : System.Collections.IEnumerator

Returns an enumerator that iterates through a collection.

메소드 상세

Add() 공개 메소드

Adds the specified feature toggle.
If is null.
public Add ( IFeatureToggle toggle ) : void
toggle IFeatureToggle The toggle to add to this configuration.
리턴 void

Clear() 공개 메소드

Clears this instance, removing all feature toggles from it.
public Clear ( ) : void
리턴 void

Get() 공개 메소드

Gets the feature toggle with the specified name.
If is null.
public Get ( string toggleName ) : IFeatureToggle
toggleName string Name of the feature toggle.
리턴 IFeatureToggle

GetEnumerator() 공개 메소드

Returns an enumerator that iterates through the collection.
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

Initialize() 공개 메소드

Initializes the this configuration using the specified configuration action.
public Initialize ( Action configuration ) : void
configuration Action The source of configuration.
리턴 void

IsEnabled() 공개 메소드

Determines whether the feature toggle with the specified name is enabled.
If is null.
public IsEnabled ( string featureName ) : bool
featureName string Name of the feature toggle.
리턴 bool

WhatDoIHave() 공개 메소드

Diagnostics on what's currently contained in this configuration instance.
public WhatDoIHave ( ) : string
리턴 string