C# Class Switcheroo.Configuration.ApplicationConfigurationReader

A concrete implementation of a IConfigurationReader that reads from the application configuration.
Inheritance: IConfigurationReader
显示文件 Open project: rhanekom/Switcheroo Class Usage Examples

Public Methods

Method Description
ApplicationConfigurationReader ( ) : System

Initializes a new instance of the ApplicationConfigurationReader class.

ApplicationConfigurationReader ( Func reader ) : System

Initializes a new instance of the ApplicationConfigurationReader class.

GetFeatures ( ) : IEnumerable

Reads the configuration, and constructs feature toggles based on it.

Private Methods

Method Description
BuildDependencies ( IFeatureToggle>.Dictionary toggles ) : IEnumerable
BuildDependencies ( DependencyToggle dependencyToggle, IFeatureToggle>.Dictionary toggles, IEnumerable dependencyNames ) : void
BuildToggles ( IFeatureToggleConfiguration configuration ) : IEnumerable
ConvertToFeatureToggle ( ToggleConfig config ) : IFeatureToggle

Method Details

ApplicationConfigurationReader() public method

Initializes a new instance of the ApplicationConfigurationReader class.
public ApplicationConfigurationReader ( ) : System
return System

ApplicationConfigurationReader() public method

Initializes a new instance of the ApplicationConfigurationReader class.
public ApplicationConfigurationReader ( Func reader ) : System
reader Func A function that retrieves the confiration section that needs to be read.
return System

GetFeatures() public method

Reads the configuration, and constructs feature toggles based on it.
public GetFeatures ( ) : IEnumerable
return IEnumerable