Interface IFeatureSwitch
Used for handling beta features.
Namespace: Mediachase.Commerce.Core.Features
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public interface IFeatureSwitch
Properties
Features
Features that can be enabled or disabled.
Declaration
IList<IFeature> Features { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IFeature> |
Methods
AddFeature(IFeature)
Adds a feature to the Features collection.
Declaration
void AddFeature(IFeature feature)
Parameters
Type | Name | Description |
---|---|---|
IFeature | feature | The feature to add |
DisableFeature(String)
Disables a specific feature
Declaration
void DisableFeature(string feature)
Parameters
Type | Name | Description |
---|---|---|
System.String | feature | The Name of the feature |
EnableFeature(String)
Enables a specific feature
Declaration
void EnableFeature(string feature)
Parameters
Type | Name | Description |
---|---|---|
System.String | feature | The Name of the feature |
GetFeatureState(String)
Gets the state for the feature
Declaration
FeatureState GetFeatureState(string feature)
Parameters
Type | Name | Description |
---|---|---|
System.String | feature | The Name of the feature |
Returns
Type | Description |
---|---|
FeatureState | The state. |
InitializeFeatures()
Initializes the features in the Features collection.
Declaration
void InitializeFeatures()