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