Example #1
0
        public override void EndOfRequest()
        {
            Connection conn = _connection;

            if (conn != null) {
                _connection = null;
                _server.OnRequestEnd(conn);
            }
        }
Example #2
0
 public Request(Server server, Host host, Connection connection)
     : base(String.Empty, String.Empty, null)
 {
     _server = server;
     _host = host;
     _connection = connection;
 }
Example #3
0
        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();
            }
        }