IMobileServiceClient.InvokeApiAsync
Method
Definition
Overloads
| InvokeApiAsync(String, JToken, HttpMethod, IDictionary<String,String>, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HTTP method. Additional data can be sent though the HTTP content or the query string. |
| InvokeApiAsync(String, HttpMethod, IDictionary<String,String>, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HTTP Method. Additional data will sent to through the query string. |
| InvokeApiAsync(String, HttpContent, HttpMethod, IDictionary<String,String>, IDictionary<String,String>, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HttpMethod. Additional data can be sent though the HTTP content or the query string. |
| InvokeApiAsync(String, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using an HTTP POST. |
| InvokeApiAsync(String, JToken, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using an HTTP POST, with support for sending HTTP content. |
| InvokeApiAsync<T,U>(String, T, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using an HTTP POST with support for sending HTTP content. |
| InvokeApiAsync<T,U>(String, T, HttpMethod, IDictionary<String,String>, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HTTP Method. Additional data can be sent though the HTTP content or the query string. |
| InvokeApiAsync<T>(String, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using an HTTP POST. |
| InvokeApiAsync<T>(String, HttpMethod, IDictionary<String,String>, CancellationToken) |
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HTTP Method. Additional data can be passed using the query string. |
InvokeApiAsync(String, JToken, HttpMethod, IDictionary<String,String>, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HTTP method. Additional data can be sent though the HTTP content or the query string.
public System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JToken> InvokeApiAsync (string apiName, Newtonsoft.Json.Linq.JToken body, System.Net.Http.HttpMethod method, System.Collections.Generic.IDictionary<string,string> parameters, System.Threading.CancellationToken cancellationToken = null);
- apiName
- String
The name of the custom API.
- body
- Newtonsoft.Json.Linq.JToken
The value to be sent as the HTTP body.
- method
- HttpMethod
The HTTP method.
- parameters
- IDictionary<String,String>
A dictionary of user-defined parameters and values to include in the request URI query string.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
The response content from the custom api invocation.
InvokeApiAsync(String, HttpMethod, IDictionary<String,String>, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HTTP Method. Additional data will sent to through the query string.
public System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JToken> InvokeApiAsync (string apiName, System.Net.Http.HttpMethod method, System.Collections.Generic.IDictionary<string,string> parameters, System.Threading.CancellationToken cancellationToken = null);
- apiName
- String
The name of the custom API.
- method
- HttpMethod
The HTTP method.
- parameters
- IDictionary<String,String>
A dictionary of user-defined parameters and values to include in the request URI query string.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
The response content from the custom api invocation.
InvokeApiAsync(String, HttpContent, HttpMethod, IDictionary<String,String>, IDictionary<String,String>, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HttpMethod. Additional data can be sent though the HTTP content or the query string.
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> InvokeApiAsync (string apiName, System.Net.Http.HttpContent content, System.Net.Http.HttpMethod method, System.Collections.Generic.IDictionary<string,string> requestHeaders, System.Collections.Generic.IDictionary<string,string> parameters, System.Threading.CancellationToken cancellationToken = null);
- apiName
- String
The name of the custom API.
- content
- HttpContent
The HTTP content.
- method
- HttpMethod
The HTTP method.
- requestHeaders
- IDictionary<String,String>
A dictionary of user-defined headers to include in the HttpRequest.
- parameters
- IDictionary<String,String>
A dictionary of user-defined parameters and values to include in the request URI query string.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
The HTTP Response from the custom api invocation.
InvokeApiAsync(String, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using an HTTP POST.
public System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JToken> InvokeApiAsync (string apiName, System.Threading.CancellationToken cancellationToken = null);
- apiName
- String
The name of the custom API.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
InvokeApiAsync(String, JToken, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using an HTTP POST, with support for sending HTTP content.
public System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JToken> InvokeApiAsync (string apiName, Newtonsoft.Json.Linq.JToken body, System.Threading.CancellationToken cancellationToken = null);
- apiName
- String
The name of the custom API.
- body
- Newtonsoft.Json.Linq.JToken
The value to be sent as the HTTP body.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
InvokeApiAsync<T,U>(String, T, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using an HTTP POST with support for sending HTTP content.
public System.Threading.Tasks.Task<U> InvokeApiAsync<T,U> (string apiName, T body, System.Threading.CancellationToken cancellationToken = null);
- T
The type of instance sent to the Microsoft Azure Mobile Service.
- U
The type of instance returned from the Microsoft Azure Mobile Service.
- apiName
- String
The name of the custom API.
- body
- T
The value to be sent as the HTTP body.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
The response content from the custom api invocation.
InvokeApiAsync<T,U>(String, T, HttpMethod, IDictionary<String,String>, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HTTP Method. Additional data can be sent though the HTTP content or the query string.
public System.Threading.Tasks.Task<U> InvokeApiAsync<T,U> (string apiName, T body, System.Net.Http.HttpMethod method, System.Collections.Generic.IDictionary<string,string> parameters, System.Threading.CancellationToken cancellationToken = null);
- T
The type of instance sent to the Microsoft Azure Mobile Service.
- U
The type of instance returned from the Microsoft Azure Mobile Service.
- apiName
- String
The name of the custom API.
- body
- T
The value to be sent as the HTTP body.
- method
- HttpMethod
The HTTP method.
- parameters
- IDictionary<String,String>
A dictionary of user-defined parameters and values to include in the request URI query string.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
The response content from the custom api invocation.
InvokeApiAsync<T>(String, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using an HTTP POST.
public System.Threading.Tasks.Task<T> InvokeApiAsync<T> (string apiName, System.Threading.CancellationToken cancellationToken = null);
- T
The type of instance returned from the Microsoft Azure Mobile Service.
- apiName
- String
The name of the custom API.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
The response content from the custom api invocation.
InvokeApiAsync<T>(String, HttpMethod, IDictionary<String,String>, CancellationToken)
Invokes a user-defined custom API of a Microsoft Azure Mobile Service using the specified HTTP Method. Additional data can be passed using the query string.
public System.Threading.Tasks.Task<T> InvokeApiAsync<T> (string apiName, System.Net.Http.HttpMethod method, System.Collections.Generic.IDictionary<string,string> parameters, System.Threading.CancellationToken cancellationToken = null);
- T
The type of instance sent to the Microsoft Azure Mobile Service.
- apiName
- String
The name of the custom API.
- method
- HttpMethod
The HTTP method.
- parameters
- IDictionary<String,String>
A dictionary of user-defined parameters and values to include in the request URI query string.
- cancellationToken
- CancellationToken
The CancellationToken token to observe
The response content from the custom api invocation.