C# Класс Switcheroo.FeatureConfiguration

A concrete implementation of a IFeatureConfiguration. This configuration stores and manages feature toggles by name.
Наследование: IFeatureConfiguration
Показать файл Открыть проект Примеры использования класса

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

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