Method | Description | |
---|---|---|
Abort ( ) : void |
Shuts down the HttpListener immediately.
|
|
BeginGetContext ( AsyncCallback callback, Object state ) : IAsyncResult |
Begins getting an incoming request information asynchronously. This asynchronous operation must be completed by calling the EndGetContext method. Typically, the method is invoked by the callback delegate. |
|
Close ( ) : void |
Shuts down the HttpListener.
|
|
EndGetContext ( IAsyncResult asyncResult ) : HttpListenerContext |
Ends an asynchronous operation to get an incoming request information. This method completes an asynchronous operation started by calling the BeginGetContext method. |
|
GetContext ( ) : HttpListenerContext |
Gets an incoming request information. This method waits for an incoming request and returns the request information when received the request. |
|
HttpListener ( ) : System |
Initializes a new instance of the HttpListener class.
|
|
Start ( ) : void |
Starts to receive incoming requests.
|
|
Stop ( ) : void |
Stops receiving incoming requests.
|
Method | Description | |
---|---|---|
AddConnection ( HttpConnection cnc ) : void | ||
CheckDisposed ( ) : void | ||
Cleanup ( bool force ) : void | ||
CleanupConnections ( ) : void | ||
CleanupContextRegistry ( ) : void | ||
CleanupWaitQueue ( ) : void | ||
Close ( bool force ) : void | ||
GetContextFromQueue ( ) : HttpListenerContext | ||
IDisposable ( ) : void |
Releases all resource used by the HttpListener.
|
|
RegisterContext ( HttpListenerContext context ) : void | ||
RemoveConnection ( HttpConnection cnc ) : void | ||
SelectAuthenticationScheme ( HttpListenerContext context ) : AuthenticationSchemes | ||
SendServiceUnavailable ( ) : void | ||
UnregisterContext ( HttpListenerContext context ) : void |
public BeginGetContext ( AsyncCallback callback, Object state ) : IAsyncResult | ||
callback | AsyncCallback |
/// An |
state | Object |
/// An |
return | IAsyncResult |
public EndGetContext ( IAsyncResult asyncResult ) : HttpListenerContext | ||
asyncResult | IAsyncResult |
/// An |
return | HttpListenerContext |