November Happy Hour will be moved to Thursday December 5th.

Interface IFeatureSwitch

Used for handling beta features.

Namespace: Mediachase.Commerce.Core.Features
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
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()

Extension Methods