HttpContentJsonExtensions.ReadFromJsonAsAsyncEnumerable Metodo

Definizione

Overload

Nome Descrizione
ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

Legge il contenuto HTTP e restituisce il valore risultante dalla deserializzazione del contenuto come JSON in un'operazione asincrona enumerabile.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

Legge il contenuto HTTP e restituisce il valore risultante dalla deserializzazione del contenuto come JSON in un'operazione asincrona enumerabile.

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

Legge il contenuto HTTP e restituisce il valore risultante dalla deserializzazione del contenuto come JSON in un'operazione asincrona enumerabile.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs

Legge il contenuto HTTP e restituisce il valore risultante dalla deserializzazione del contenuto come JSON in un'operazione asincrona enumerabile.

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

Parametri di tipo

TValue

Tipo di destinazione in cui deserializzare.

Parametri

content
HttpContent
cancellationToken
CancellationToken

Valori restituiti

Oggetto IAsyncEnumerable<T> che rappresenta il corpo della risposta deserializzato.

Attributi

Eccezioni

Il content è null.

Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.

Si applica a

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs

Legge il contenuto HTTP e restituisce il valore risultante dalla deserializzazione del contenuto come JSON in un'operazione asincrona enumerabile.

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

Parametri di tipo

TValue

Tipo di destinazione in cui deserializzare.

Parametri

content
HttpContent

Contenuto da cui leggere.

options
JsonSerializerOptions

Opzioni per controllare il comportamento durante la deserializzazione. Le opzioni predefinite sono quelle specificate da Web.

cancellationToken
CancellationToken

Valori restituiti

Oggetto IAsyncEnumerable<T> che rappresenta il corpo della risposta deserializzato.

Attributi

Eccezioni

Il content è null.

Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.

Si applica a

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

Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs
Origine:
HttpContentJsonExtensions.AsyncEnumerable.cs

Legge il contenuto HTTP e restituisce il valore risultante dalla deserializzazione del contenuto come JSON in un'operazione asincrona enumerabile.

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)

Parametri di tipo

TValue

Tipo di destinazione in cui deserializzare.

Parametri

content
HttpContent

Contenuto da cui leggere.

jsonTypeInfo
JsonTypeInfo<TValue>

JsonTypeInfo usato per controllare il comportamento di deserializzazione.

cancellationToken
CancellationToken

Valori restituiti

Oggetto IAsyncEnumerable<T> che rappresenta il corpo della risposta deserializzato.

Eccezioni

Il content è null.

Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.

Si applica a