Example #1
0
        public T Get <T>(string key) where T : class
        {
            key = GXUtil.NormalizeKey(key);
            if (_httpSession != null)
            {
                GXLogging.Debug(log, "GetObject SessionId : " + _httpSession.SessionID);
                if (_httpSession[key] == null)
                {
                    return(null);
                }
#if NETCORE
                return(JSONHelper.DeserializeNullDefaultValue <T>(_httpSession[key]));
#else
                return((T)_httpSession[key]);
#endif
            }
            return(null);
        }