public PermissionMonitor(ISystemResourceStore <TResource> systemResourceStore,
                          ICacheManager cacheManager,
                          IOptionsMonitor <AuthorizationExtensionOptions> optionsAccessor)
 {
     CacheManager        = cacheManager;
     CacheEnabled        = (optionsAccessor.CurrentValue?.Cache ?? new CacheOptions()).Enabled;
     SystemResourceStore = systemResourceStore;
 }
Ejemplo n.º 2
0
 public SystemResourceService(ISystemResourceStore <TResource> systemResourceStore,
                              IPermissionMonitor permissionMonitor)
     : base(systemResourceStore)
 {
     PermissionMonitor = permissionMonitor;
 }