Beispiel #1
0
 public HttpResponseObject SetSession(DataHttpSession session)
 {
     Session = session;
     return this;
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public HttpResponseObject DeleteSession(DataHttpSession session)
 {
     NeedToDeleteSession = true;
     return SetSession(session);
 }
Beispiel #4
0
        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);
            }
        }