| 1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Collections.Generic;
- namespace IwbZero.Authorization.Base.Roles
- {
- /// <summary>
- /// Used to cache permissions of a role.
- /// </summary>
- [Serializable]
- public class RolePermissionCacheItem
- {
- public const string CacheStoreName = "IwbZeroRolePermissions";
- public long RoleId { get; set; }
- public HashSet<string> GrantedPermissions { get; set; }
- public RolePermissionCacheItem()
- {
- GrantedPermissions = new HashSet<string>();
- }
- public RolePermissionCacheItem(int roleId)
- : this()
- {
- RoleId = roleId;
- }
- }
- }
|