コード例 #1
0
ファイル: NetHandler.cs プロジェクト: qcjxberin/ec
 private ISession GetSession(IChannel channel)
 {
     ISession result = (ISession)channel["_session"];
     if (result == null)
     {
         result = new Implement.Session { Application = Application, Channel = channel };
         channel["_session"] = result;
     }
     return result;
 }
コード例 #2
0
        private ISession GetSession(IChannel channel)
        {
            ISession result = (ISession)channel["_session"];

            if (result == null)
            {
                result = new Implement.Session {
                    Application = Application, Channel = channel
                };
                channel["_session"] = result;
            }
            return(result);
        }