C# Class Switcheroo.Toggles.LocateByNameStrategy

A locator strategy to find a feature toggle by name.
Inheritance: ILocatorStrategy
显示文件 Open project: rhanekom/Switcheroo Class Usage Examples

Public Methods

Method Description
Locate ( ) : IFeatureToggle

Locates a feature toggle with the strategy as indicated by this type.

LocateByNameStrategy ( IFeatureConfiguration featureConfiguration, string toggleName ) : System

Initializes a new instance of the LocateByNameStrategy class.

Method Details

Locate() public method

Locates a feature toggle with the strategy as indicated by this type.
public Locate ( ) : IFeatureToggle
return IFeatureToggle

LocateByNameStrategy() public method

Initializes a new instance of the LocateByNameStrategy class.
public LocateByNameStrategy ( IFeatureConfiguration featureConfiguration, string toggleName ) : System
featureConfiguration IFeatureConfiguration The feature configuration to find the toggle in.
toggleName string The name of the toggle to find.
return System