Class HttpClientTransfer
Defines methods for transferring content over HTTP using the HttpClient.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class HttpClientTransfer : HttpTransfer
Methods
SendBinary(HttpRequestArgs)
Sends binary content synchronously using the specified arguments.
Declaration
public override HttpResponseArgs SendBinary(HttpRequestArgs requestArgs)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request arguments. |
Returns
Type | Description |
---|---|
HttpResponseArgs | The response arguments from the server. |
Overrides
SendBinaryAsync(HttpRequestArgs, Action1<HttpResponseArgs>)
Sends binary content asynchronously using the specified arguments.
Declaration
public override void SendBinaryAsync(HttpRequestArgs requestArgs, Action1<HttpResponseArgs> callback)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request arguments. |
Action1<HttpResponseArgs> | callback | The callback to execute on success or failure. |
Overrides
SendText(HttpRequestArgs)
Sends text content synchronously using the specified arguments.
Declaration
public override HttpResponseArgs SendText(HttpRequestArgs requestArgs)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request arguments. |
Returns
Type | Description |
---|---|
HttpResponseArgs | The response arguments from the server. |
Overrides
SendTextAsync(HttpRequestArgs, Action1<HttpResponseArgs>)
Sends text content asynchronously using the specified arguments.
Declaration
public override void SendTextAsync(HttpRequestArgs requestArgs, Action1<HttpResponseArgs> callback)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request arguments. |
Action1<HttpResponseArgs> | callback | The callback to execute on success or failure. |
Overrides
Shutdown()
Releases any resources and shuts down.
Declaration
public override void Shutdown()