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