Ejemplo n.º 1
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;
 }
Ejemplo n.º 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);
        }