| | |
| | | using System.Threading.Tasks; |
| | | using Microsoft.Extensions.Configuration; |
| | | using Microsoft.Extensions.Logging; |
| | | using Newtonsoft.Json; |
| | | using WIDESEA_Core.Helper; |
| | | |
| | | namespace WIDESEA_Core.Util |
| | |
| | | { |
| | | try |
| | | { |
| | | TResponse? response = JsonSerializer.Deserialize<TResponse>(result.Content, new JsonSerializerOptions |
| | | { |
| | | PropertyNameCaseInsensitive = true |
| | | }); |
| | | TResponse? response = JsonConvert.DeserializeObject<TResponse>(result.Content); |
| | | if (response != null) |
| | | { |
| | | result.Data = response; |
| | |
| | | { |
| | | try |
| | | { |
| | | TResponse? response = JsonSerializer.Deserialize<TResponse>(result.Content, new JsonSerializerOptions |
| | | { |
| | | PropertyNameCaseInsensitive = true |
| | | }); |
| | | TResponse? response = JsonConvert.DeserializeObject<TResponse>(result.Content); |
| | | if (response != null) |
| | | { |
| | | result.Data = response; |