Пример #1
0
 public AuthHandler(IHttpContextAccessor contextAccessor,
                    ITokenHelper tokenHelper,
                    ICacheStoreHelper <UserAuthModel> cacheStoreHelper)
 {
     _contextAccessor = contextAccessor;
     TokenHelper      = tokenHelper;
     CacheStoreHelper = cacheStoreHelper;
 }
Пример #2
0
 public AuthHelper(ILifetimeScope scope,
                   IUserRepository userRepository,
                   IHashCryptographyHelper hashCryptographyHelper,
                   ICacheStoreHelper <UserAuthModel> cacheStoreHelper)
 //IBaseItemRepository baseItemRepository,
 //IGroupToUserRepository groupToUserRepository,
 //IGroupRepository groupRepository)
 {
     Scope                  = scope;
     UserRepository         = userRepository;
     HashCryptographyHelper = hashCryptographyHelper;
     CacheStoreHelper       = cacheStoreHelper;
     //TokenHelper = tokenHelper;
     //BaseItemRepository = baseItemRepository;
     //GroupToUserRepository = groupToUserRepository;
     //GroupRepository = groupRepository;
 }
Пример #3
0
 public LineHelper(ICacheStoreHelper <LineModel> cacheStoreHelper, ColorHelper colorHelper)
 {
     _cacheStoreHelper = cacheStoreHelper;
     _colorHelper      = colorHelper;
 }
Пример #4
0
 public TokenHelper(ICacheStoreHelper <UserAuthModel> cacheStoreHelper)
 {
     CacheStoreHelper = cacheStoreHelper;
 }