We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65825c commit edca3c5Copy full SHA for edca3c5
‎jwl.infra/HttpClientExt.cs
@@ -27,8 +27,10 @@ public static async Task<TResponse> DeserializeJsonStreamAsync<TResponse>(Stream
27
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
28
IncludeFields = true
29
};
30
+
31
TResponse result = await JsonSerializer.DeserializeAsync<TResponse>(stream, jsonSerializerOptions)
32
?? throw new NullReferenceException("JSON deserialization NULL result");
33
34
return result;
35
}
36
@@ -39,6 +41,7 @@ public static async Task<TResponse> DeserializeXmlStreamAsync<TResponse>(Stream
39
41
{
40
42
object result = xmlSerializer.Deserialize(responseContentStream)
43
?? throw new NullReferenceException("XML deserialization NULL result");
44
45
46
});
47
0 commit comments