SuperHttpClientWaitingRequest

Overview

SuperHttpClientWaitingRequest represents data on the result of sending a request. Instances of this class are obtained for each request sent by the SuperHttpClientChannel and will contain response or error code after server feedback.

Location

Properties


Error

After processing a request, this poperty will contain an error code or 0, if no errros were encountered.

 

property Error: Int32 read write;

 

Int32 Error { get; set; }

 

Property Error As Int32

Response

After processing a request, this poperty will contain a MemoryStream with the server response.

 

property Response: MemoryStream read write;

 

MemoryStream Response { get; set; }

 

Property Response As MemoryStream

WaitHandle

Event WaitHandle passes control to the thread making the server call and waits until the request has been executed on the server and a response has been received.

If no signal from the server was received within SuperHttpClientChannel.ConnectTimeout, the SuperHttpClientChannel will raise a "Timeout connecting" exception.

 

property WaitHandle: AutoResetEvent read;

 

AutoResetEvent WaitHandle { get; }

 

Property ReadOnly WaitHandle As AutoResetEvent

Instance Methods


constructor

 

constructor

 

SuperHttpClientWaitingRequest()

 

Sub New