Table of Contents

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

T

The inherited feature type of Feature.

Activate<T>(T)

Activates a feature.

public abstract void Activate<T>(T feature) where T : Feature

Parameters

feature T

The feature to activate.

Type Parameters

T

The inherited feature type of Feature.

Deactivate<T>()

Deactivates a feature.

public abstract void Deactivate<T>() where T : Feature, new()

Type Parameters

T

The inherited feature type of Feature.

Deactivate<T>(T)

Deactivates a feature.

public abstract void Deactivate<T>(T feature) where T : Feature

Parameters

feature T

The feature to deactivate.

Type Parameters

T

The inherited feature type of Feature.

IsActive<T>()

Determines if a feature is active.

public abstract bool IsActive<T>() where T : Feature, new()

Returns

bool

Type Parameters

T

The 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

feature T

The feature to check.

Returns

bool

Type Parameters

T

The 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

T

The 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

feature T

The feature.

Type Parameters

T

The 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

T

The 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

feature T

The feature to toggle.

Type Parameters

T

The inherited feature type of Feature.

To top