Exemple #1
0
 public UserCacheScheduler(IServiceProvider serviceProvider)
 {
     this._userService      = serviceProvider.GetService <IUserService>();
     this._userCacheService = serviceProvider.GetService <UserCacheService <IUser> >();
 }
 public AuthenticateService(IHttpContextAccessor httpContextAccessor, JewellisDbContext dbContext, UsersService users, UserCacheService userCache, ClientCurrencyService clientCurrency, ClientThemeService clientTheme)
 {
     _httpContextAccessor = httpContextAccessor;
     _dbContext           = dbContext;
     _users          = users;
     _userCache      = userCache;
     _clientCurrency = clientCurrency;
     _clientTheme    = clientTheme;
 }
Exemple #3
0
        /// <summary>
        /// Represents a service (scoped) for managing the client's shopping cart.
        /// </summary>
        public ClientShoppingCartService(IHttpContextAccessor httpContextAccessor, IMemoryCache cache, JewellisDbContext dbContext, UserIdentityService userIdentity, UserCacheService userCache)
        {
            _httpContextAccessor = httpContextAccessor;
            _cache        = cache;
            _dbContext    = dbContext;
            _userIdentity = userIdentity;
            _userCache    = userCache;

            this.InitializeClientCart();
        }
Exemple #4
0
 public UsersService(JewellisDbContext dbContext, UserCacheService userCache)
 {
     _dbContext = dbContext;
     _userCache = userCache;
 }