public VBThreadManager(VBDbContext db, VBForumManager forumManager, VBUserManager userManager, IVBCache cache)
 {
     this.db           = db;
     this.forumManager = forumManager;
     this.userManager  = userManager;
     this.cache        = cache;
 }
Beispiel #2
0
 public VBSessionManager(VBDbContext db, VBUserManager userManager, VBSettingsManager settingsManager, VBConfig vbConfig, IHttpContextAccessor contextAccessor,
                         IVBCache cache)
 {
     this.db              = db;
     this.userManager     = userManager;
     this.settingsManager = settingsManager;
     this.vbConfig        = vbConfig;
     this.contextAccessor = contextAccessor;
     this.cache           = cache;
 }
        public VBLightSessionManager(IHttpContextAccessor contextAccessor, VBSessionHelper sessionHelper, VBLightSettingsManager lightSettingsManager, VBLightUserManager lightUserManager,
                                     MySqlConnection db, ILogger <VBLightSessionManager> logger, IVBCache cache, string cookieSalt, string cookiePrefix)
        {
            this.contextAccessor      = contextAccessor;
            this.sessionHelper        = sessionHelper;
            this.lightSettingsManager = lightSettingsManager;
            this.lightUserManager     = lightUserManager;
            this.db         = db;
            CookiePrefix    = cookiePrefix;
            this.cookieSalt = cookieSalt;
            this.logger     = logger;
            this.cache      = cache;

            // For the case that we are not in a  http request
            logger.LogDebug($"VBLightSessionManager HttpContext exists: {contextAccessor.HttpContext != null} - CacheProvider: {cache.GetType().Name}");
            if (contextAccessor.HttpContext != null)
            {
                contextCookies = contextAccessor.HttpContext.Request.Cookies;
            }
        }
 public VBLightSettingsManager(MySqlConnection db, IVBCache cache)
 {
     this.db    = db;
     this.cache = cache;
 }
 public VBForumManager(VBDbContext db, IVBCache cache)
 {
     this.db    = db;
     this.cache = cache;
 }
 public VBSettingsManager(VBDbContext db, IVBCache cache)
 {
     this.db    = db;
     this.cache = cache;
 }