Class PermissionStore
Inheritance
System.Object
PermissionStore
Implements
ITransientDependency
Assembly: Volo.Abp.PermissionManagement.Domain.dll
Syntax
public class PermissionStore : object, IPermissionStore, ITransientDependency
Constructors
PermissionStore(IPermissionGrantRepository, IDistributedCache<PermissionGrantCacheItem>, IPermissionDefinitionManager)
Declaration
public PermissionStore(IPermissionGrantRepository permissionGrantRepository, IDistributedCache<PermissionGrantCacheItem> cache, IPermissionDefinitionManager permissionDefinitionManager)
Parameters
Properties
Cache
Declaration
protected IDistributedCache<PermissionGrantCacheItem> Cache { get; }
Property Value
Logger
Declaration
public ILogger<PermissionStore> Logger { get; set; }
Property Value
PermissionDefinitionManager
Declaration
protected IPermissionDefinitionManager PermissionDefinitionManager { get; }
Property Value
PermissionGrantRepository
Declaration
protected IPermissionGrantRepository PermissionGrantRepository { get; }
Property Value
Methods
CalculateCacheKey(String, String, String)
Declaration
protected virtual string CalculateCacheKey(string name, string providerName, string providerKey)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
providerName |
|
System.String |
providerKey |
|
Returns
Type |
Description |
System.String |
|
GetCacheItemAsync(String, String, String)
Declaration
protected virtual Task<PermissionGrantCacheItem> GetCacheItemAsync(string name, string providerName, string providerKey)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
providerName |
|
System.String |
providerKey |
|
Returns
IsGrantedAsync(String, String, String)
Declaration
public virtual Task<bool> IsGrantedAsync(string name, string providerName, string providerKey)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
providerName |
|
System.String |
providerKey |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
SetCacheItemsAsync(String, String, String, PermissionGrantCacheItem)
Declaration
protected virtual Task SetCacheItemsAsync(string providerName, string providerKey, string currentName, PermissionGrantCacheItem currentCacheItem)
Parameters
Type |
Name |
Description |
System.String |
providerName |
|
System.String |
providerKey |
|
System.String |
currentName |
|
PermissionGrantCacheItem |
currentCacheItem |
|
Returns
Implements
ITransientDependency
Extension Methods