public HttpResponseObject SetSession(DataHttpSession session) { Session = session; return this; }
public HttpResponseObject CreateSession(params object[] parameters) { var newSession = new DataHttpSession(); for (var index = 0; index < parameters.Length; index += 2) { newSession[parameters[index].ToString()] = parameters[index + 1]; } return SetSession(newSession); }
public HttpResponseObject DeleteSession(DataHttpSession session) { NeedToDeleteSession = true; return SetSession(session); }
private void UpdateSessionMap(DataHttpSession session) { if (session == null) return; lock (_sessionLock) { if (_sessionMap.ContainsKey(session.SessionKey)) _sessionMap.Remove(session.SessionKey); _sessionMap.Add(session.SessionKey, session); } }