Class RequireFeaturesSimpleStateChecker<TState>
Inheritance
object
RequireFeaturesSimpleStateChecker<TState>
Implements
ISimpleStateChecker<TState>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Features
Assembly: Volo.Abp.Features.dll
Syntax
public class RequireFeaturesSimpleStateChecker<TState> : ISimpleStateChecker<TState> where TState : IHasSimpleStateCheckers<TState>
Type Parameters
Name | Description |
---|---|
TState |
Constructors
RequireFeaturesSimpleStateChecker(bool, params string[])
Declaration
public RequireFeaturesSimpleStateChecker(bool requiresAll, params string[] featureNames)
Parameters
Type | Name | Description |
---|---|---|
bool | requiresAll | |
string[] | featureNames |
RequireFeaturesSimpleStateChecker(params string[])
Declaration
public RequireFeaturesSimpleStateChecker(params string[] featureNames)
Parameters
Type | Name | Description |
---|---|---|
string[] | featureNames |
Properties
FeatureNames
Declaration
public string[] FeatureNames { get; }
Property Value
Type | Description |
---|---|
string[] |
RequiresAll
Declaration
public bool RequiresAll { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
IsEnabledAsync(SimpleStateCheckerContext<TState>)
Declaration
public Task<bool> IsEnabledAsync(SimpleStateCheckerContext<TState> context)
Parameters
Type | Name | Description |
---|---|---|
SimpleStateCheckerContext<TState> | context |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><bool> |