Class RequireGlobalFeaturesSimpleStateChecker<TState>
Inheritance
object
RequireGlobalFeaturesSimpleStateChecker<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.GlobalFeatures
Assembly: Volo.Abp.GlobalFeatures.dll
Syntax
public class RequireGlobalFeaturesSimpleStateChecker<TState> : ISimpleStateChecker<TState> where TState : IHasSimpleStateCheckers<TState>
Type Parameters
Name | Description |
---|---|
TState |
Constructors
RequireGlobalFeaturesSimpleStateChecker(bool, params string[])
Declaration
public RequireGlobalFeaturesSimpleStateChecker(bool requiresAll, params string[] globalFeatureNames)
Parameters
Type | Name | Description |
---|---|---|
bool | requiresAll | |
string[] | globalFeatureNames |
RequireGlobalFeaturesSimpleStateChecker(bool, params Type[])
Declaration
public RequireGlobalFeaturesSimpleStateChecker(bool requiresAll, params Type[] globalFeatureNames)
Parameters
Type | Name | Description |
---|---|---|
bool | requiresAll | |
System.Type[] | globalFeatureNames |
RequireGlobalFeaturesSimpleStateChecker(params string[])
Declaration
public RequireGlobalFeaturesSimpleStateChecker(params string[] globalFeatureNames)
Parameters
Type | Name | Description |
---|---|---|
string[] | globalFeatureNames |
Properties
GlobalFeatureNames
Declaration
public string[] GlobalFeatureNames { 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> |