/// <summary> /// 注册会话 /// </summary> /// <param name="session"></param> public void Register(HttpSessionStateWrapper session) { if (_Data.Any(s => s.SessionId == session.SessionId)) { return; } lock (_Locker) { if (! _Data.Any(s => s.SessionId == session.SessionId)) { _Data.Add(session); } } }
public UserProfilesRelatedUtil(HttpSessionStateWrapper session) { _SessionEx = session; }