HttpClientJsonExtensions.GetFromJsonAsAsyncEnumerable Methode

Definition

Überlädt

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

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, Uri, CancellationToken)

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

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

Sendet eine HTTP GET Anforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

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

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

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

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

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

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, String, CancellationToken)

Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

[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)

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Ein IAsyncEnumerable<T> Wert, der den deserialisierten Antworttext darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

GetFromJsonAsAsyncEnumerable<TValue>(HttpClient, Uri, CancellationToken)

Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

[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)

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Ein IAsyncEnumerable<T> Wert, der den deserialisierten Antworttext darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sendet eine HTTP GET Anforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

[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)

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Ein IAsyncEnumerable<T> Wert, der den deserialisierten Antworttext darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

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)

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

jsonTypeInfo
JsonTypeInfo<TValue>

Die JsonTypeInfo, die zum Steuern des Verhaltens während der Deserialisierung verwendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Ein IAsyncEnumerable<T> Wert, der den deserialisierten Antworttext darstellt.

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

[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)

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Ein IAsyncEnumerable<T> Wert, der den deserialisierten Antworttext darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs
Quelle:
HttpClientJsonExtensions.Get.AsyncEnumerable.cs

Sendet eine HTTP GETAnforderung an den angegebenen requestUri Und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Aufzählungsvorgang resultiert.

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)

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

jsonTypeInfo
JsonTypeInfo<TValue>

Die JsonTypeInfo, die zum Steuern des Verhaltens während der Deserialisierung verwendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Ein IAsyncEnumerable<T> Wert, der den deserialisierten Antworttext darstellt.

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für: