public void SaveUserDetails(CachedUser user)
 {
     sessionLock.EnterReadLock();
     httpContext.Session[cachedUserId] = JsonConvert.SerializeObject(user);
     sessionLock.ExitReadLock();
 }
Exemplo n.º 2
0
 public void SaveUserDetails(CachedUser user)
 {
     sessionLock.EnterWriteLock();
     httpContext.Session[userCacheKey] = JsonConvert.SerializeObject(user);
     sessionLock.ExitWriteLock();
 }