C# Class Switcheroo.Features

A static instance of an IFeatureConfiguration, provided for convenience.
Afficher le fichier Open project: rhanekom/Switcheroo

Méthodes publiques

Méthode Description
Add ( IFeatureToggle toggle ) : void

Adds the specified feature toggle.

Get ( string toggleName ) : IFeatureToggle

Gets the feature toggle with the specified name.

Initialize ( Action configuration ) : void

Initializes the this configuration using the specified configuration action.

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.

Private Methods

Méthode Description
Features ( ) : System

Method Details

Add() public static méthode

Adds the specified feature toggle.
If is null.
public static Add ( IFeatureToggle toggle ) : void
toggle IFeatureToggle The toggle to add to this configuration.
Résultat void

Get() public static méthode

Gets the feature toggle with the specified name.
If is null.
public static Get ( string toggleName ) : IFeatureToggle
toggleName string Name of the feature toggle.
Résultat IFeatureToggle

Initialize() public static méthode

Initializes the this configuration using the specified configuration action.
public static Initialize ( Action configuration ) : void
configuration Action The source of configuration.
Résultat void

Initialize() public static méthode

Initializes the this configuration using the specified configuration action.
public static Initialize ( Action configuration ) : void
configuration Action The source of configuration.
Résultat void

IsEnabled() public static méthode

Determines whether the feature toggle with the specified name is enabled.
If is null.
public static IsEnabled ( string featureName ) : bool
featureName string Name of the feature toggle.
Résultat bool

WhatDoIHave() public static méthode

Diagnostics on what's currently contained in this configuration instance.
public static WhatDoIHave ( ) : string
Résultat string