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 { } }