HttpClientJsonExtensions.GetFromJsonAsAsyncEnumerable Method

Definition

Overloads

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, String, CancellationToken)

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, Uri, CancellationToken)

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

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

Sends an HTTP GET request to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, String, JsonTypeInfo<TValue>, CancellationToken)

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

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

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, Uri, JsonTypeInfo<TValue>, CancellationToken)

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, String, CancellationToken)

Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

C#
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, string? requestUri, System.Threading.CancellationToken cancellationToken = default);

Type Parameters

TValue

The target type to deserialize to.

Parameters

client
HttpClient

The client used to send the request.

requestUri
String

The Uri the request is sent to.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

An IAsyncEnumerable<T> that represents the deserialized response body.

Exceptions

The client is null.

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, Uri, CancellationToken)

Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

C#
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, System.Threading.CancellationToken cancellationToken = default);

Type Parameters

TValue

The target type to deserialize to.

Parameters

client
HttpClient

The client used to send the request.

requestUri
Uri

The Uri the request is sent to.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

An IAsyncEnumerable<T> that represents the deserialized response body.

Exceptions

The client is null.

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

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

Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sends an HTTP GET request to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

C#
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, string? requestUri, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);

Type Parameters

TValue

The target type to deserialize to.

Parameters

client
HttpClient

The client used to send the request.

requestUri
String

The Uri the request is sent to.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

An IAsyncEnumerable<T> that represents the deserialized response body.

Exceptions

The client is null.

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, String, JsonTypeInfo<TValue>, CancellationToken)

Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

C#
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, string? requestUri, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default);

Type Parameters

TValue

The target type to deserialize to.

Parameters

client
HttpClient

The client used to send the request.

requestUri
String

The Uri the request is sent to.

jsonTypeInfo
JsonTypeInfo<TValue>

The JsonTypeInfo used to control the behavior during deserialization.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

An IAsyncEnumerable<T> that represents the deserialized response body.

Exceptions

The client is null.

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

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

Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

C#
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);

Type Parameters

TValue

The target type to deserialize to.

Parameters

client
HttpClient

The client used to send the request.

requestUri
Uri

The Uri the request is sent to.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

An IAsyncEnumerable<T> that represents the deserialized response body.

Exceptions

The client is null.

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, Uri, JsonTypeInfo<TValue>, CancellationToken)

Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Source:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sends an HTTP GETrequest to the specified requestUri and returns the value that results from deserializing the response body as JSON in an async enumerable operation.

C#
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default);

Type Parameters

TValue

The target type to deserialize to.

Parameters

client
HttpClient

The client used to send the request.

requestUri
Uri

The Uri the request is sent to.

jsonTypeInfo
JsonTypeInfo<TValue>

The JsonTypeInfo used to control the behavior during deserialization.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

An IAsyncEnumerable<T> that represents the deserialized response body.

Exceptions

The client is null.

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)