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

◆ GetFromJsonAsyncCore() [2/2]

static async Task< object > System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsyncCore ( Task< HttpResponseMessage > taskResponse,
Type type,
JsonSerializerOptions options,
CancellationToken cancellationToken )
inlinestaticprivate

Definition at line 121 of file HttpClientJsonExtensions.cs.

122 {
123 using (HttpResponseMessage response = await taskResponse.ConfigureAwait(continueOnCapturedContext: false))
124 {
125 response.EnsureSuccessStatusCode();
127 }
128 [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "Workaround for https://github.com/mono/linker/issues/1416. The outer method is marked as RequiresUnreferencedCode.")]
129 [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2067:UnrecognizedReflectionPattern", Justification = "Workaround for https://github.com/mono/linker/issues/1416. The outer method is marked as RequiresUnreferencedCode.")]
131 {
132 return content.ReadFromJsonAsync(type, options, cancellationToken);
133 }
134 }

References System.cancellationToken, System.Text.Json.Dictionary, System.options, and System.type.

Referenced by System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync(), System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync(), System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync(), System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync(), System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync< TValue >(), and System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync< TValue >().