HttpContentJsonExtensions.ReadFromJsonAsAsyncEnumerable 메서드

정의

오버로드

Name Description
ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

HTTP 콘텐츠를 읽고 비동기 열거 가능 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

HTTP 콘텐츠를 읽고 비동기 열거 가능 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

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

HTTP 콘텐츠를 읽고 비동기 열거 가능 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs

HTTP 콘텐츠를 읽고 비동기 열거 가능 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

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

형식 매개 변수

TValue

역직렬화할 대상 형식입니다.

매개 변수

content
HttpContent
cancellationToken
CancellationToken

반품

IAsyncEnumerable<T> 역직렬화된 응답 본문을 나타내는 값입니다.

특성

예외

contentnull입니다.

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs

HTTP 콘텐츠를 읽고 비동기 열거 가능 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

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

형식 매개 변수

TValue

역직렬화할 대상 형식입니다.

매개 변수

content
HttpContent

읽을 콘텐츠입니다.

options
JsonSerializerOptions

역직렬화 중 동작을 제어하는 옵션입니다. 기본 옵션은 .에서 지정한 Web옵션입니다.

cancellationToken
CancellationToken

반품

IAsyncEnumerable<T> 역직렬화된 응답 본문을 나타내는 값입니다.

특성

예외

contentnull입니다.

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상

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

Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs
Source:
HttpContentJsonExtensions.AsyncEnumerable.cs

HTTP 콘텐츠를 읽고 비동기 열거 가능 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

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)

형식 매개 변수

TValue

역직렬화할 대상 형식입니다.

매개 변수

content
HttpContent

읽을 콘텐츠입니다.

jsonTypeInfo
JsonTypeInfo<TValue>

역직렬화 동작을 제어하는 데 사용되는 JsonTypeInfo입니다.

cancellationToken
CancellationToken

반품

IAsyncEnumerable<T> 역직렬화된 응답 본문을 나타내는 값입니다.

예외

contentnull입니다.

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상