Exemplo n.º 1
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));
        }
Exemplo n.º 2
0
        private void RemoveSessionMap(DataHttpSession session)
        {
            if (session == null)
            {
                return;
            }

            lock (_sessionLock)
            {
                if (_sessionMap.ContainsKey(session.SessionKey))
                {
                    _sessionMap.Remove(session.SessionKey);
                }
            }
        }
Exemplo n.º 3
0
 public HttpResponseObject DeleteSession(DataHttpSession session)
 {
     NeedToDeleteSession = true;
     return(SetSession(session));
 }
Exemplo n.º 4
0
 public HttpResponseObject SetSession(DataHttpSession session)
 {
     Session = session;
     return(this);
 }