Waits for a request to come in to the web server and returns a
IHttpListenerContext adapter around it.
Namespace: WebDAVSharp.Server.AdaptersAssembly: WebDAVSharp.Server (in WebDAVSharp.Server.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- abortEvent
- Type: System.Threading EventWaitHandle
A EventWaitHandle to use for aborting the wait. If this event becomes set before a request comes in, this method will return null.
Return Value
Type: IHttpListenerContextA IHttpListenerContext adapter object for a request; or null if the wait for a request was aborted due to abortEvent being set.
Implements
IHttpListener GetContext(EventWaitHandle)Exceptions
Exception | Condition |
---|---|
ArgumentNullException | abortEvent |
ArgumentNullException | abortEvent is null. |
See Also