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; } }
public override void Disconnect(IServer server, SessionEventArgs e) { try { HttpDisconnect?.Invoke(server, e); base.Disconnect(server, e); } finally { e.Session.Tag = null; } }