Исправление сериализации
All checks were successful
Unit tests / test (push) Successful in 1m3s

This commit is contained in:
Шибалкин Александр 2025-01-17 10:36:28 +05:00
parent d5942cd670
commit 5497b89c3b
2 changed files with 6 additions and 5 deletions

View File

@ -5,6 +5,7 @@ using DD.Persistence.Client.Clients.Interfaces.Refit;
using DD.Persistence.Models;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Globalization;
namespace DD.Persistence.Client.Clients;
@ -46,7 +47,7 @@ public class SetpointClient : BaseClient, ISetpointClient
setpointConfigs.TryGetValue(valueDto.Key, out var type) &&
type is not null)
dict[valueDto.Key] = Convert.ChangeType(element.GetString(), type) ?? valueDto.Value;
dict[valueDto.Key] = Convert.ChangeType(element.GetString(), type, CultureInfo.InvariantCulture) ?? valueDto.Value;
else
dict[valueDto.Key] = valueDto.Value;
}

View File

@ -11,9 +11,9 @@
<!--Наименование-->
<Title>DD.Persistence.Client</Title>
<!--Версия пакета-->
<VersionPrefix>1.1.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)).1</VersionPrefix>
<VersionPrefix>1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)).1</VersionPrefix>
<!--Версия сборки-->
<AssemblyVersion>1.1.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)).1</AssemblyVersion>
<AssemblyVersion>1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)).1</AssemblyVersion>
<!--Id пакета-->
<PackageId>DD.Persistence.Client</PackageId>
@ -40,8 +40,8 @@
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>1.2.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH))</VersionPrefix>
<AssemblyVersion>1.2.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH))</AssemblyVersion>
<VersionPrefix>1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH))</VersionPrefix>
<AssemblyVersion>1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH))</AssemblyVersion>
</PropertyGroup>
<ItemGroup>