George George

George George

  • NA
  • 778
  • 0

HttpListener.BeginGetContext

Jun 5 2008 5:55 AM

Hello everyone,


I have made tests, just want to confirm here since I am new to this method.

1.

HttpListener.BeginGetContext is never blocked?

2.

If we wait on the handle, like this, then the wait handle will be signalled immediately when we call EndGetContext, like this "listener.EndGetContext(result)"?

[Code]
    IAsyncResult result = listener.BeginGetContext(new AsyncCallback(ListenerCallback),listener);
    result.AsyncWaitHandle.WaitOne();
[/Code]


thanks in advance,
George