Show / Hide Table of Contents

Class FeatureManager

Inheritance
System.Object
FeatureManager
Implements
IFeatureManager
ISingletonDependency
Namespace: Volo.Abp.FeatureManagement
Assembly: Volo.Abp.FeatureManagement.Domain.dll
Syntax
public class FeatureManager : object, IFeatureManager, ISingletonDependency

Constructors

FeatureManager(IOptions<FeatureManagementOptions>, IServiceProvider, IFeatureDefinitionManager)

Declaration
public FeatureManager(IOptions<FeatureManagementOptions> options, IServiceProvider serviceProvider, IFeatureDefinitionManager featureDefinitionManager)
Parameters
Type Name Description
IOptions<FeatureManagementOptions> options
IServiceProvider serviceProvider
IFeatureDefinitionManager featureDefinitionManager

Properties

FeatureDefinitionManager

Declaration
protected IFeatureDefinitionManager FeatureDefinitionManager { get; }
Property Value
Type Description
IFeatureDefinitionManager

Options

Declaration
protected FeatureManagementOptions Options { get; }
Property Value
Type Description
FeatureManagementOptions

Providers

Declaration
protected List<IFeatureManagementProvider> Providers { get; }
Property Value
Type Description
List<IFeatureManagementProvider>

Methods

GetAllAsync(String, String, Boolean)

Declaration
public virtual Task<List<FeatureNameValue>> GetAllAsync(string providerName, string providerKey, bool fallback = true)
Parameters
Type Name Description
System.String providerName
System.String providerKey
System.Boolean fallback
Returns
Type Description
Task<List<FeatureNameValue>>

GetAllWithProviderAsync(String, String, Boolean)

Declaration
public Task<List<FeatureNameValueWithGrantedProvider>> GetAllWithProviderAsync(string providerName, string providerKey, bool fallback = true)
Parameters
Type Name Description
System.String providerName
System.String providerKey
System.Boolean fallback
Returns
Type Description
Task<List<FeatureNameValueWithGrantedProvider>>

GetOrNullAsync(String, String, String, Boolean)

Declaration
public virtual Task<string> GetOrNullAsync(string name, string providerName, string providerKey, bool fallback = true)
Parameters
Type Name Description
System.String name
System.String providerName
System.String providerKey
System.Boolean fallback
Returns
Type Description
Task<System.String>

GetOrNullInternalAsync(String, String, String, Boolean)

Declaration
protected virtual Task<FeatureNameValueWithGrantedProvider> GetOrNullInternalAsync(string name, string providerName, string providerKey, bool fallback = true)
Parameters
Type Name Description
System.String name
System.String providerName
System.String providerKey
System.Boolean fallback
Returns
Type Description
Task<FeatureNameValueWithGrantedProvider>

GetOrNullWithProviderAsync(String, String, String, Boolean)

Declaration
public Task<FeatureNameValueWithGrantedProvider> GetOrNullWithProviderAsync(string name, string providerName, string providerKey, bool fallback = true)
Parameters
Type Name Description
System.String name
System.String providerName
System.String providerKey
System.Boolean fallback
Returns
Type Description
Task<FeatureNameValueWithGrantedProvider>

SetAsync(String, String, String, String, Boolean)

Declaration
public virtual Task SetAsync(string name, string value, string providerName, string providerKey, bool forceToSet = false)
Parameters
Type Name Description
System.String name
System.String value
System.String providerName
System.String providerKey
System.Boolean forceToSet
Returns
Type Description
Task

Implements

IFeatureManager
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft