C-DEngine 5.105

HttpListener..::..GetContext Method

Gets an incoming request.

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

Syntax


public HttpListenerContext GetContext()
Public Function GetContext As HttpListenerContext
public:
HttpListenerContext^ GetContext()

Return Value

A HttpListenerContext that represents a request.

Exceptions


ExceptionCondition
InvalidOperationException

This listener has no URI prefix on which listens.

-or-

This listener hasn't been started, or is currently stopped.

ObjectDisposedException This listener has been closed.

Remarks


This method waits for an incoming request, and returns when a request is received.