Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReadFromJsonAsyncCore() [2/2]

static async Task< object > System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsyncCore ( HttpContent content,
Type type,
Encoding sourceEncoding,
JsonSerializerOptions options,
CancellationToken cancellationToken )
inlinestaticprivate

Definition at line 37 of file HttpContentJsonExtensions.cs.

38 {
40 {
42 }
43 [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "Workaround for https://github.com/mono/linker/issues/1416. The outer method is marked as RequiresUnreferencedCode.")]
44 [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2067:UnrecognizedReflectionPattern", Justification = "Workaround for https://github.com/mono/linker/issues/1416. The outer method is marked as RequiresUnreferencedCode.")]
46 {
48 }
49 }
static async Task< Stream > GetContentStream(HttpContent content, Encoding sourceEncoding, CancellationToken cancellationToken)
static ValueTask< object?> DeserializeAsync(Stream utf8Json, Type returnType, JsonSerializerOptions? options=null, CancellationToken cancellationToken=default(CancellationToken))

References System.cancellationToken, System.Text.Json.JsonSerializer.DeserializeAsync(), System.Text.Json.Dictionary, System.Net.Http.Json.HttpContentJsonExtensions.GetContentStream(), System.options, System.Net.Http.Json.JsonHelpers.s_defaultSerializerOptions, and System.type.

Referenced by System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync(), System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync(), and System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync< T >().