Class HttpWebRequestAsyncResult
An asynchronous result object returning the result of an HTTP Request
Implements
System.IAsyncResult
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Eclo.nF.SIM800H
Assembly: cs.temp.dll.dll
Syntax
public class HttpWebRequestAsyncResult : DeviceAsyncResult, IAsyncResult
Constructors
HttpWebRequestAsyncResult(HttpWebRequest, Boolean, Boolean, Boolean, Int32, AsyncCallback, Object)
Declaration
public HttpWebRequestAsyncResult(HttpWebRequest request, bool readResponseData = false, bool readResponseHeaders = false, bool closeConnectionOnCompletion = true, int readTimeout = 5000, AsyncCallback asyncCallback = null, object asyncState = null)
Parameters
Type | Name | Description |
---|---|---|
HttpWebRequest | request | |
System.Boolean | readResponseData | |
System.Boolean | readResponseHeaders | |
System.Boolean | closeConnectionOnCompletion | |
System.Int32 | readTimeout | |
System.AsyncCallback | asyncCallback | |
System.Object | asyncState |
Fields
HttpResponse
The device HTTP response object after the call is completed.
Declaration
public HttpWebResponse HttpResponse
Field Value
Type | Description |
---|---|
HttpWebResponse |
Properties
_closeConnectionOnCompletion
Declaration
public bool _closeConnectionOnCompletion { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
End()
Finishes the asynchronous processing and throws an exception if one was generated
Declaration
public HttpWebResponse End()
Returns
Type | Description |
---|---|
HttpWebResponse | Returns the SMS |
Process()
The method used to perform the asynchronous processing
Declaration
public override void Process()
Overrides
Implements
System.IAsyncResult