HttpClientJsonExtensions.GetFromJsonAsync Method

Definition

Overloads

GetFromJsonAsync(HttpClient, String, Type, CancellationToken)
GetFromJsonAsync(HttpClient, Uri, Type, CancellationToken)
GetFromJsonAsync(HttpClient, String, Type, JsonSerializerOptions, CancellationToken)
GetFromJsonAsync(HttpClient, Uri, Type, JsonSerializerOptions, CancellationToken)
GetFromJsonAsync<TValue>(HttpClient, String, CancellationToken)
GetFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)
GetFromJsonAsync<TValue>(HttpClient, String, JsonSerializerOptions, CancellationToken)
GetFromJsonAsync<TValue>(HttpClient, Uri, JsonSerializerOptions, CancellationToken)

GetFromJsonAsync(HttpClient, String, Type, CancellationToken)

public static System.Threading.Tasks.Task<object> GetFromJsonAsync (this System.Net.Http.HttpClient client, string requestUri, Type type, System.Threading.CancellationToken cancellationToken = default);
static member GetFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetFromJsonAsync (client As HttpClient, requestUri As String, type As Type, Optional cancellationToken As CancellationToken = null) As Task(Of Object)

Parameters

client
HttpClient
requestUri
String
type
Type
cancellationToken
CancellationToken

Returns

Task<Object>

GetFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

public static System.Threading.Tasks.Task<object> GetFromJsonAsync (this System.Net.Http.HttpClient client, Uri requestUri, Type type, System.Threading.CancellationToken cancellationToken = default);
static member GetFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetFromJsonAsync (client As HttpClient, requestUri As Uri, type As Type, Optional cancellationToken As CancellationToken = null) As Task(Of Object)

Parameters

client
HttpClient
requestUri
Uri
type
Type
cancellationToken
CancellationToken

Returns

Task<Object>

GetFromJsonAsync(HttpClient, String, Type, JsonSerializerOptions, CancellationToken)

public static System.Threading.Tasks.Task<object> GetFromJsonAsync (this System.Net.Http.HttpClient client, string requestUri, Type type, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken = default);
static member GetFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetFromJsonAsync (client As HttpClient, requestUri As String, type As Type, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = null) As Task(Of Object)

Parameters

client
HttpClient
requestUri
String
type
Type
cancellationToken
CancellationToken

Returns

Task<Object>

GetFromJsonAsync(HttpClient, Uri, Type, JsonSerializerOptions, CancellationToken)

public static System.Threading.Tasks.Task<object> GetFromJsonAsync (this System.Net.Http.HttpClient client, Uri requestUri, Type type, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken = default);
static member GetFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetFromJsonAsync (client As HttpClient, requestUri As Uri, type As Type, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = null) As Task(Of Object)

Parameters

client
HttpClient
requestUri
Uri
type
Type
cancellationToken
CancellationToken

Returns

Task<Object>

GetFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

public static System.Threading.Tasks.Task<TValue> GetFromJsonAsync<TValue> (this System.Net.Http.HttpClient client, string requestUri, System.Threading.CancellationToken cancellationToken = default);
static member GetFromJsonAsync : System.Net.Http.HttpClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function GetFromJsonAsync(Of TValue) (client As HttpClient, requestUri As String, Optional cancellationToken As CancellationToken = null) As Task(Of TValue)

Type Parameters

TValue

Parameters

client
HttpClient
requestUri
String
cancellationToken
CancellationToken

Returns

Task<TValue>

GetFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

public static System.Threading.Tasks.Task<TValue> GetFromJsonAsync<TValue> (this System.Net.Http.HttpClient client, Uri requestUri, System.Threading.CancellationToken cancellationToken = default);
static member GetFromJsonAsync : System.Net.Http.HttpClient * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function GetFromJsonAsync(Of TValue) (client As HttpClient, requestUri As Uri, Optional cancellationToken As CancellationToken = null) As Task(Of TValue)

Type Parameters

TValue

Parameters

client
HttpClient
requestUri
Uri
cancellationToken
CancellationToken

Returns

Task<TValue>

GetFromJsonAsync<TValue>(HttpClient, String, JsonSerializerOptions, CancellationToken)

public static System.Threading.Tasks.Task<TValue> GetFromJsonAsync<TValue> (this System.Net.Http.HttpClient client, string requestUri, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken = default);
static member GetFromJsonAsync : System.Net.Http.HttpClient * string * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function GetFromJsonAsync(Of TValue) (client As HttpClient, requestUri As String, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = null) As Task(Of TValue)

Type Parameters

TValue

Parameters

client
HttpClient
requestUri
String
cancellationToken
CancellationToken

Returns

Task<TValue>

GetFromJsonAsync<TValue>(HttpClient, Uri, JsonSerializerOptions, CancellationToken)

public static System.Threading.Tasks.Task<TValue> GetFromJsonAsync<TValue> (this System.Net.Http.HttpClient client, Uri requestUri, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken = default);
static member GetFromJsonAsync : System.Net.Http.HttpClient * Uri * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function GetFromJsonAsync(Of TValue) (client As HttpClient, requestUri As Uri, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = null) As Task(Of TValue)

Type Parameters

TValue

Parameters

client
HttpClient
requestUri
Uri
cancellationToken
CancellationToken

Returns

Task<TValue>

Applies to