public override void EndOfRequest() { Connection conn = _connection; if (conn != null) { _connection = null; _server.OnRequestEnd(conn); } }
public Request(Server server, Host host, Connection connection) : base(String.Empty, String.Empty, null) { _server = server; _host = host; _connection = connection; }
public void ProcessRequest(Connection conn) { // Add a pending call to make sure our thread doesn't get killed AddPendingCall(); try { Request request = new Request(_server, this, conn); request.Process(); } finally { RemovePendingCall(); } }