示例#1
0
 public AuthHandler(IHttpContextAccessor contextAccessor,
                    ITokenHelper tokenHelper,
                    ICacheStoreHelper <UserAuthModel> cacheStoreHelper)
 {
     _contextAccessor = contextAccessor;
     TokenHelper      = tokenHelper;
     CacheStoreHelper = cacheStoreHelper;
 }
 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;
 }
 public TokenHelper(ICacheStoreHelper <UserAuthModel> cacheStoreHelper)
 {
     CacheStoreHelper = cacheStoreHelper;
 }