This commit is contained in:
parent
d5942cd670
commit
5497b89c3b
@ -5,6 +5,7 @@ using DD.Persistence.Client.Clients.Interfaces.Refit;
|
|||||||
using DD.Persistence.Models;
|
using DD.Persistence.Models;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace DD.Persistence.Client.Clients;
|
namespace DD.Persistence.Client.Clients;
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ public class SetpointClient : BaseClient, ISetpointClient
|
|||||||
setpointConfigs.TryGetValue(valueDto.Key, out var type) &&
|
setpointConfigs.TryGetValue(valueDto.Key, out var type) &&
|
||||||
type is not null)
|
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
|
else
|
||||||
dict[valueDto.Key] = valueDto.Value;
|
dict[valueDto.Key] = valueDto.Value;
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
<!--Наименование-->
|
<!--Наименование-->
|
||||||
<Title>DD.Persistence.Client</Title>
|
<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 пакета-->
|
<!--Id пакета-->
|
||||||
<PackageId>DD.Persistence.Client</PackageId>
|
<PackageId>DD.Persistence.Client</PackageId>
|
||||||
|
|
||||||
@ -40,8 +40,8 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<VersionPrefix>1.2.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH))</VersionPrefix>
|
<VersionPrefix>1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH))</VersionPrefix>
|
||||||
<AssemblyVersion>1.2.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH))</AssemblyVersion>
|
<AssemblyVersion>1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH))</AssemblyVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user