Class FeatureManager
- Namespace
- Dynamicweb.Core
- Assembly
- Dynamicweb.Core.dll
Represents a manager for determining and activating features in the system.
public abstract class FeatureManager
- Inheritance
-
FeatureManager
- Inherited Members
Methods
Activate<T>()
Activates a feature.
public abstract void Activate<T>() where T : Feature, new()
Type Parameters
TThe inherited feature type of Feature.
Activate<T>(T)
Activates a feature.
public abstract void Activate<T>(T feature) where T : Feature
Parameters
featureTThe feature to activate.
Type Parameters
TThe inherited feature type of Feature.
Deactivate<T>()
Deactivates a feature.
public abstract void Deactivate<T>() where T : Feature, new()
Type Parameters
TThe inherited feature type of Feature.
Deactivate<T>(T)
Deactivates a feature.
public abstract void Deactivate<T>(T feature) where T : Feature
Parameters
featureTThe feature to deactivate.
Type Parameters
TThe inherited feature type of Feature.
IsActive<T>()
Determines if a feature is active.
public abstract bool IsActive<T>() where T : Feature, new()
Returns
Type Parameters
TThe inherited feature type of Feature.
IsActive<T>(T)
Determines if a feature is active.
public abstract bool IsActive<T>(T feature) where T : Feature
Parameters
featureTThe feature to check.
Returns
Type Parameters
TThe inherited feature type of Feature.
SetToDefault<T>()
Sets a feature to its default value.
public abstract void SetToDefault<T>() where T : Feature, new()
Type Parameters
TThe inherited feature type of Feature.
SetToDefault<T>(T)
Sets a feature to its default value.
public abstract void SetToDefault<T>(T feature) where T : Feature
Parameters
featureTThe feature.
Type Parameters
TThe inherited feature type of Feature.
Toggle<T>()
Toggles a feature active, if current deactivated and vice versa.
public abstract void Toggle<T>() where T : Feature, new()
Type Parameters
TThe inherited feature type of Feature.
Toggle<T>(T)
Toggles a feature active, if current deactivated and vice versa.
public abstract void Toggle<T>(T feature) where T : Feature
Parameters
featureTThe feature to toggle.
Type Parameters
TThe inherited feature type of Feature.