HttpClientJsonExtensions.GetFromJsonAsAsyncEnumerable Metoda

Definice

Přetížení

Name Description
GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, String, CancellationToken)

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, Uri, CancellationToken)

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

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

HTTP GET Odešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

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

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

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

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

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

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, String, CancellationToken)

Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, string? requestUri, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, string? requestUri, System.Threading.CancellationToken cancellationToken = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * string * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * string * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function GetFromJsonAsAsyncEnumerable(Of TValue) (client As HttpClient, requestUri As String, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Cílový typ, na který se má deserializovat.

Parametry

client
HttpClient

Klient použitý k odeslání požadavku.

requestUri
String

Identifikátor URI, na který se požadavek odešle.

cancellationToken
CancellationToken

Token zrušení, který lze použít jinými objekty nebo vlákny k přijetí oznámení o zrušení.

Návraty

Představuje IAsyncEnumerable<T> deserializované tělo odpovědi.

Atributy

Výjimky

To client je null.

Token zrušení byl zrušen. Tato výjimka je uložena do vrácené úlohy.

Platí pro

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, Uri, CancellationToken)

Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> GetFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, System.Threading.CancellationToken cancellationToken = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * Uri * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * Uri * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function GetFromJsonAsAsyncEnumerable(Of TValue) (client As HttpClient, requestUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Cílový typ, na který se má deserializovat.

Parametry

client
HttpClient

Klient použitý k odeslání požadavku.

requestUri
Uri

Identifikátor URI, na který se požadavek odešle.

cancellationToken
CancellationToken

Token zrušení, který lze použít jinými objekty nebo vlákny k přijetí oznámení o zrušení.

Návraty

Představuje IAsyncEnumerable<T> deserializované tělo odpovědi.

Atributy

Výjimky

To client je null.

Token zrušení byl zrušen. Tato výjimka je uložena do vrácené úlohy.

Platí pro

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

Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

HTTP GET Odešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
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);
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);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * string * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * string * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function GetFromJsonAsAsyncEnumerable(Of TValue) (client As HttpClient, requestUri As String, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Cílový typ, na který se má deserializovat.

Parametry

client
HttpClient

Klient použitý k odeslání požadavku.

requestUri
String

Identifikátor URI, na který se požadavek odešle.

cancellationToken
CancellationToken

Token zrušení, který lze použít jinými objekty nebo vlákny k přijetí oznámení o zrušení.

Návraty

Představuje IAsyncEnumerable<T> deserializované tělo odpovědi.

Atributy

Výjimky

To client je null.

Token zrušení byl zrušen. Tato výjimka je uložena do vrácené úlohy.

Platí pro

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

Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

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);
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * string * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function GetFromJsonAsAsyncEnumerable(Of TValue) (client As HttpClient, requestUri As String, jsonTypeInfo As JsonTypeInfo(Of TValue), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Cílový typ, na který se má deserializovat.

Parametry

client
HttpClient

Klient použitý k odeslání požadavku.

requestUri
String

Identifikátor URI, na který se požadavek odešle.

jsonTypeInfo
JsonTypeInfo<TValue>

JsonTypeInfo sloužící k řízení chování během deserializace.

cancellationToken
CancellationToken

Token zrušení, který lze použít jinými objekty nebo vlákny k přijetí oznámení o zrušení.

Návraty

Představuje IAsyncEnumerable<T> deserializované tělo odpovědi.

Výjimky

To client je null.

Token zrušení byl zrušen. Tato výjimka je uložena do vrácené úlohy.

Platí pro

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

Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
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);
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);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * Uri * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * Uri * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function GetFromJsonAsAsyncEnumerable(Of TValue) (client As HttpClient, requestUri As Uri, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Cílový typ, na který se má deserializovat.

Parametry

client
HttpClient

Klient použitý k odeslání požadavku.

requestUri
Uri

Identifikátor URI, na který se požadavek odešle.

cancellationToken
CancellationToken

Token zrušení, který lze použít jinými objekty nebo vlákny k přijetí oznámení o zrušení.

Návraty

Představuje IAsyncEnumerable<T> deserializované tělo odpovědi.

Atributy

Výjimky

To client je null.

Token zrušení byl zrušen. Tato výjimka je uložena do vrácené úlohy.

Platí pro

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

Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Zdroj:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

HTTP GETOdešle požadavek na zadanou requestUri hodnotu a vrátí hodnotu, která je výsledkem deserializace textu odpovědi jako JSON v asynchronní enumerovatelné operaci.

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);
static member GetFromJsonAsAsyncEnumerable : System.Net.Http.HttpClient * Uri * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function GetFromJsonAsAsyncEnumerable(Of TValue) (client As HttpClient, requestUri As Uri, jsonTypeInfo As JsonTypeInfo(Of TValue), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Cílový typ, na který se má deserializovat.

Parametry

client
HttpClient

Klient použitý k odeslání požadavku.

requestUri
Uri

Identifikátor URI, na který se požadavek odešle.

jsonTypeInfo
JsonTypeInfo<TValue>

JsonTypeInfo sloužící k řízení chování během deserializace.

cancellationToken
CancellationToken

Token zrušení, který lze použít jinými objekty nebo vlákny k přijetí oznámení o zrušení.

Návraty

Představuje IAsyncEnumerable<T> deserializované tělo odpovědi.

Výjimky

To client je null.

Token zrušení byl zrušen. Tato výjimka je uložena do vrácené úlohy.

Platí pro