Class RequirePermissionsSimpleStateChecker<TState>
Inheritance
object
RequirePermissionsSimpleStateChecker<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.Authorization.Permissions
Assembly: Volo.Abp.Authorization.dll
Syntax
public class RequirePermissionsSimpleStateChecker<TState> : ISimpleStateChecker<TState> where TState : IHasSimpleStateCheckers<TState>
Type Parameters
Name | Description |
---|---|
TState |
Constructors
RequirePermissionsSimpleStateChecker(RequirePermissionsSimpleBatchStateCheckerModel<TState>)
Declaration
public RequirePermissionsSimpleStateChecker(RequirePermissionsSimpleBatchStateCheckerModel<TState> model)
Parameters
Type | Name | Description |
---|---|---|
RequirePermissionsSimpleBatchStateCheckerModel<TState> | model |
Properties
PermissionNames
Declaration
public string[] PermissionNames { 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> |