Exemplo n.º 1
0
        /// <summary>
        /// ProcessRequest
        /// </summary>
        public void ProcessRequest()
        {
            HttpListenerContext ctx = null;

            try
            {
                ctx = FListener.GetContext();
            }
            catch (ThreadAbortException)
            {
                Console.WriteLine("Server stopped probably because a file in the application directory was changed");
                return;
            }
            TMyHttpWorkerRequest workerRequest =
                new TMyHttpWorkerRequest(ctx, FVirtualDir, FPhysicalDir);

            (new Thread(() => ProcessRequest(workerRequest))).Start();
        }
Exemplo n.º 2
0
        /// <summary>
        /// ProcessRequest
        /// </summary>
        public void ProcessRequest()
        {
            HttpListenerContext ctx = null;

            try
            {
                ctx = FListener.GetContext();
            }
            catch (ThreadAbortException)
            {
                Console.WriteLine("Server stopped probably because a file in the application directory was changed");
                return;
            }
            TMyHttpWorkerRequest workerRequest =
                new TMyHttpWorkerRequest(ctx, FVirtualDir, FPhysicalDir);

            (new Thread(() => ProcessRequest(workerRequest))).Start();
        }
Exemplo n.º 3
0
 /// <summary>
 /// to be called by a new thread per request
 /// </summary>
 private void ProcessRequest(TMyHttpWorkerRequest r)
 {
     HttpRuntime.ProcessRequest(r);
 }
Exemplo n.º 4
0
 /// <summary>
 /// to be called by a new thread per request
 /// </summary>
 private void ProcessRequest(TMyHttpWorkerRequest r)
 {
     HttpRuntime.ProcessRequest(r);
 }