public NCacheSessionMiddleware(RequestDelegate next, ISessionStoreService sessionStoreService, IOptions <NCacheSessionConfiguration> options) { _sessionStoreService = sessionStoreService; _next = next; _options = options.Value; }
private SessionEstablisher(HttpContext context, string cookieValue, NCacheSessionConfiguration options) { _context = context; _cookieValue = cookieValue; _options = options; context.Response.OnStarting(OnStartingCallback, state: this); }
public static SessionEstablisher CreateCallback(HttpContext context, string cookieValue, NCacheSessionConfiguration options) { return(new SessionEstablisher(context, cookieValue, options)); }