Exemplo n.º 1
0
        private void ProcessRequest()
        {
            HttpListenerContext ctx;

            try
            {
                ctx = _listener.GetContext();
            }
            catch (HttpListenerException)
            {
                return;
            }
            catch (Exception e)
            {
                Trace.WriteLine(e.ToString());
                return;
            }
            QueueNextRequestWait();
            var workerRequest = new HttpListenerWorkerRequest(ctx, _virtualDir, _physicalDir);

            try
            {
                HttpRuntime.ProcessRequest(workerRequest);
            }
            catch (Exception e)
            {
                Trace.WriteLine(e.ToString());
            }
        }
 public void ProcessRequest()
 {
     HttpListenerContext ctx;
     try
     {
         ctx = _listener.GetContext();
     }
     catch (HttpListenerException)
     {
         return;
     }
     QueueNextRequestWait();
     var workerRequest = new HttpListenerWorkerRequest(ctx, _virtualDir, _physicalDir);
     try
     {
         HttpRuntime.ProcessRequest(workerRequest);
     }
     catch
     {
     }
 }
Exemplo n.º 3
0
        public void ProcessRequest()
        {
            HttpListenerContext ctx;

            try
            {
                ctx = _listener.GetContext();
            }
            catch (HttpListenerException)
            {
                return;
            }
            QueueNextRequestWait();
            var workerRequest = new HttpListenerWorkerRequest(ctx, _virtualDir, _physicalDir);

            try
            {
                HttpRuntime.ProcessRequest(workerRequest);
            }
            catch
            {
            }
        }