Interface IRestConnector
Namespace: i5.Toolkit.Core.Utilities
Assembly: cs.temp.dll.dll
Syntax
public interface IRestConnector
Methods
DeleteAsync(String, Dictionary<String, String>)
Declaration
Task<WebResponse<string>> DeleteAsync(string uri, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
GetAsync(String, Dictionary<String, String>)
Declaration
Task<WebResponse<string>> GetAsync(string uri, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
PostAsync(String, Byte[], Dictionary<String, String>)
Declaration
Task<WebResponse<string>> PostAsync(string uri, byte[] postData, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
Byte[] | postData | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
PostAsync(String, String, Dictionary<String, String>)
Declaration
Task<WebResponse<string>> PostAsync(string uri, string postJson, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
String | postJson | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
PutAsync(String, Byte[], Dictionary<String, String>)
Declaration
Task<WebResponse<string>> PutAsync(string uri, byte[] putData, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
Byte[] | putData | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |
PutAsync(String, String, Dictionary<String, String>)
Declaration
Task<WebResponse<string>> PutAsync(string uri, string putJson, Dictionary<string, string> headers = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | |
String | putJson | |
Dictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Task<WebResponse<String>> |