Example #1
0
 private SessionStateStoreData WrapData(NoLockingStoredData sessionValue, HttpContext context, int timeout)
 {
     return(new SessionStateStoreData(
                sessionValue?.GetSessionData() ?? new NoLockingSessionData(),
                context != null ? SessionStateUtility.GetSessionStaticObjects(context) : null,
                timeout));
 }
Example #2
0
 public override void SetAndReleaseItemExclusive(HttpContext context, string id, SessionStateStoreData item, object lockId, bool newItem)
 {
     if (Store.Sessions.TryGetValue(id, out var session))
     {
         session.Merge(item.Items);
     }
     else
     {
         session = new NoLockingStoredData();
         session.Merge(item.Items);
         Store.Sessions[id] = session;
     }
 }