HttpContentJsonExtensions.ReadFromJsonAsAsyncEnumerable Metoda

Definice

Přetížení

Name Description
ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

Přečte obsah HTTP a vrátí hodnotu, která má za následek deserializaci obsahu jako JSON v asynchronní enumerovatelné operaci.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

Přečte obsah HTTP a vrátí hodnotu, která má za následek deserializaci obsahu jako JSON v asynchronní enumerovatelné operaci.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonTypeInfo<TValue>, CancellationToken)

Přečte obsah HTTP a vrátí hodnotu, která má za následek deserializaci obsahu jako JSON v asynchronní enumerovatelné operaci.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs

Přečte obsah HTTP a vrátí hodnotu, která má za následek deserializaci obsahu 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?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, 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 ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function ReadFromJsonAsAsyncEnumerable(Of TValue) (content As HttpContent, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

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

Parametry

content
HttpContent
cancellationToken
CancellationToken

Návraty

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

Atributy

Výjimky

To content je null.

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

Platí pro

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs

Přečte obsah HTTP a vrátí hodnotu, která má za následek deserializaci obsahu 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?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, 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 ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function ReadFromJsonAsAsyncEnumerable(Of TValue) (content As HttpContent, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

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

Parametry

content
HttpContent

Obsah, ze který se má číst.

options
JsonSerializerOptions

Možnosti řízení chování při deserializaci Výchozí možnosti jsou určené parametrem Web.

cancellationToken
CancellationToken

Návraty

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

Atributy

Výjimky

To content je null.

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

Platí pro

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonTypeInfo<TValue>, CancellationToken)

Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs
Zdroj:
HttpContentJsonExtensions.AsyncEnumerable.cs

Přečte obsah HTTP a vrátí hodnotu, která má za následek deserializaci obsahu jako JSON v asynchronní enumerovatelné operaci.

public static System.Collections.Generic.IAsyncEnumerable<TValue?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default);
static member ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function ReadFromJsonAsAsyncEnumerable(Of TValue) (content As HttpContent, 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

content
HttpContent

Obsah, ze který se má číst.

jsonTypeInfo
JsonTypeInfo<TValue>

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

cancellationToken
CancellationToken

Návraty

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

Výjimky

To content je null.

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

Platí pro