Пример #1
0
 public AuthorizationChecker(IUserIdProvider userIdProvider, IUserRightsProvider userRightsProvider)
 {
     _userIdProvider     = userIdProvider;
     _userRightsProvider = userRightsProvider;
 }
Пример #2
0
 public UserRightsCache(IUserRightsProvider decoratee, IMemoryCache cache)
 {
     _decoratee = decoratee;
     _cache = cache;
 }