ReturnAsync Method
Overloads
ReturnAsync<T>(Func<JToken, Task<T>>) |
Deserializes the return value of an RPC response. Equivalent to calling ResultAsync<T>(String, Func<JToken, Task<T>>) with parameter "name" set to "qReturn". |
ReturnAsync<T>(Func<JToken, Task<T>>)
Deserializes the return value of an RPC response. Equivalent to calling ResultAsync<T>(String, Func<JToken, Task<T>>) with parameter "name" set to "qReturn".
Declaration
public Task<T> ReturnAsync<T>(Func<JToken, Task<T>> deserializer)
Parameters
Type | Name | Description |
---|---|---|
System.Func<Newtonsoft.Json.Linq.JToken, System.Threading.Tasks.Task<T>> | deserializer |
The method to use to translate a token to the target type. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<T> |
A task that resolves the deserialized value. |
Type Parameters
Name | Description |
---|---|
T |
The type to which the json response should be deserialized. |
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!