C# Class Switcheroo.Features

A static instance of an IFeatureConfiguration, provided for convenience.
显示文件 Open project: rhanekom/Switcheroo

Public Methods

Method 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

Method Description
Features ( ) : System

Method Details

Add() public static method

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

Get() public static method

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

Initialize() public static method

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

Initialize() public static method

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

IsEnabled() public static method

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.
return bool

WhatDoIHave() public static method

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