Ejemplo n.º 1
0
        public override void Disconnect(IServer server, SessionEventArgs e)
        {
            try
            {
                HttpToken token = (HttpToken)e.Session.Tag;
                if (token != null)
                {
                    if (token.Request != null)
                    {
                        token.Request.Response = null;
                    }
                    token.Request = null;
                }

                if (LogOutput == e.Session)
                {
                    LogOutput = null;
                }
                HttpDisconnect?.Invoke(server, e);
                base.Disconnect(server, e);
            }
            finally
            {
                e.Session.Tag = null;
            }
        }
Ejemplo n.º 2
0
 public override void Disconnect(IServer server, SessionEventArgs e)
 {
     try
     {
         HttpDisconnect?.Invoke(server, e);
         base.Disconnect(server, e);
     }
     finally
     {
         e.Session.Tag = null;
     }
 }