public NCacheSessionMiddleware(RequestDelegate next, ISessionStoreService sessionStoreService, IOptions <NCacheSessionConfiguration> options) { _sessionStoreService = sessionStoreService; _next = next; _options = options.Value; }
internal NCacheSession(HttpContext context, string sessionId, ISessionStoreService cacheStorage, bool readOnly, bool newSession, int requestTimeout, TimeSpan sessionTimeout) { _sessionId = sessionId; _context = context; _data = new NCacheSessionData(); _cacheStorage = cacheStorage; _readonly = readOnly; _newSession = newSession; _timeoutSpan = TimeSpan.FromSeconds(requestTimeout); _sessionTimeout = sessionTimeout; }