C# Класс Switcheroo.Configuration.ApplicationConfigurationReader

A concrete implementation of a IConfigurationReader that reads from the application configuration.
Наследование: IConfigurationReader
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
BuildDependencies ( IFeatureToggle>.Dictionary toggles ) : IEnumerable
BuildDependencies ( DependencyToggle dependencyToggle, IFeatureToggle>.Dictionary toggles, IEnumerable dependencyNames ) : void
BuildToggles ( IFeatureToggleConfiguration configuration ) : IEnumerable
ConvertToFeatureToggle ( ToggleConfig config ) : IFeatureToggle

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

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

Initializes a new instance of the ApplicationConfigurationReader class.
public ApplicationConfigurationReader ( ) : System
Результат System

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

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

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

Reads the configuration, and constructs feature toggles based on it.
public GetFeatures ( ) : IEnumerable
Результат IEnumerable