Class GlobalFeatureManager
Inheritance
System.Object
GlobalFeatureManager
Assembly: Volo.Abp.GlobalFeatures.dll
Syntax
public class GlobalFeatureManager : object
Properties
Configuration
A common dictionary to store arbitrary configurations.
Declaration
public Dictionary<object, object> Configuration { get; }
Property Value
| Type |
Description |
| Dictionary<System.Object, System.Object> |
|
EnabledFeatures
Declaration
protected HashSet<string> EnabledFeatures { get; }
Property Value
| Type |
Description |
| HashSet<System.String> |
|
Instance
Declaration
public static GlobalFeatureManager Instance { get; protected set; }
Property Value
Modules
Declaration
public GlobalModuleFeaturesDictionary Modules { get; }
Property Value
Methods
Disable(String)
Declaration
protected void Disable(string featureName)
Parameters
| Type |
Name |
Description |
| System.String |
featureName |
|
Enable(String)
Declaration
protected void Enable(string featureName)
Parameters
| Type |
Name |
Description |
| System.String |
featureName |
|
GetEnabledFeatureNames()
Declaration
public virtual IEnumerable<string> GetEnabledFeatureNames()
Returns
| Type |
Description |
| IEnumerable<System.String> |
|
IsEnabled(String)
Declaration
public virtual bool IsEnabled(string featureName)
Parameters
| Type |
Name |
Description |
| System.String |
featureName |
|
Returns
| Type |
Description |
| System.Boolean |
|
IsEnabled(Type)
Declaration
public virtual bool IsEnabled(Type featureType)
Parameters
| Type |
Name |
Description |
| Type |
featureType |
|
Returns
| Type |
Description |
| System.Boolean |
|
IsEnabled<TFeature>()
Declaration
public virtual bool IsEnabled<TFeature>()
where TFeature : GlobalFeature
Returns
| Type |
Description |
| System.Boolean |
|
Type Parameters
| Name |
Description |
| TFeature |
|
Extension Methods