C-DEngine 5.105

HttpListener..::..EndGetContext Method

Ends an asynchronous operation to get an incoming request.

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public HttpListenerContext EndGetContext(
	IAsyncResult asyncResult
)
Public Function EndGetContext ( _
	asyncResult As IAsyncResult _
) As HttpListenerContext
public:
HttpListenerContext^ EndGetContext(
	IAsyncResult^ asyncResult
)

Parameters

asyncResult
Type: IAsyncResult
An IAsyncResult obtained by calling the BeginGetContext method.

Return Value

A HttpListenerContext that represents a request.

Exceptions


ExceptionCondition
ArgumentNullExceptionasyncResult is nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentExceptionasyncResult wasn't obtained by calling the BeginGetContext method.
InvalidOperationException This method was already called for the specified asyncResult.
ObjectDisposedException This listener has been closed.

Remarks


This method completes an asynchronous operation started by calling the BeginGetContext method.