Skip to content

Commit

Permalink
Merge pull request #2950 from romanett/mergeDurable
Browse files Browse the repository at this point in the history
Merge develop/main374 into develop/durable
  • Loading branch information
romanett authored Jan 20, 2025
2 parents 7830dfe + 5a03baf commit 60152f1
Show file tree
Hide file tree
Showing 79 changed files with 1,340 additions and 730 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ root = true
# All files
[*]
indent_style = space
tab_width = 4

# Code files
[*.{cs,csx,vb,vbx}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* ======================================================================*/

using System;

using System.Globalization;
using Opc.Ua;

#pragma warning disable CS1591
Expand Down Expand Up @@ -272,7 +272,7 @@ private ServiceResult OnShelve(
}
else
{
dueTo = " due to TimedShelve of " + shelvingTime.ToString();
dueTo = " due to TimedShelve of " + shelvingTime.ToString(CultureInfo.InvariantCulture);
}
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* ======================================================================*/

using System;

using System.Globalization;
using Opc.Ua;

#pragma warning disable CS1591
Expand Down Expand Up @@ -168,7 +168,7 @@ public void ReportEvent(ConditionState alarm = null)
alarm.Time.Value = DateTime.UtcNow;
alarm.ReceiveTime.Value = alarm.Time.Value;

Log("ReportEvent", " Value " + m_alarmController.GetValue().ToString() +
Log("ReportEvent", " Value " + m_alarmController.GetValue().ToString(CultureInfo.InvariantCulture) +
" Message " + alarm.Message.Value.Text);

alarm.ClearChangeMasks(SystemContext, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* ======================================================================*/

using System;

using System.Globalization;
using Opc.Ua;

#pragma warning disable CS0219
Expand Down Expand Up @@ -85,7 +85,7 @@ public override void SetValue(string message = "")

if (message.Length == 0)
{
message = "Discrete Alarm analog value = " + value.ToString() + ", active = " + active.ToString();
message = "Discrete Alarm analog value = " + value.ToString(CultureInfo.InvariantCulture) + ", active = " + active.ToString();
}

base.SetValue(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* http://opcfoundation.org/License/MIT/1.00/
* ======================================================================*/

using System;
using System.Collections.Generic;
using System.Reflection;
using Opc.Ua;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
using Opc.Ua.Server;
using Opc.Ua.Sample;
using System.Reflection;
using System.Globalization;

namespace MemoryBuffer
{
Expand Down Expand Up @@ -234,7 +235,7 @@ protected override object GetManagerHandle(ISystemContext context, NodeId nodeId
}

// check range on offset.
uint offset = Convert.ToUInt32(offsetText);
uint offset = Convert.ToUInt32(offsetText, CultureInfo.InvariantCulture);

if (offset >= buffer.SizeInBytes.Value)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ private DataItemState[] CreateDataItemVariables(NodeState parent, string path, s
// now to create the remaining NUMBERED items
for (uint i = 0; i < numVariables; i++)
{
string newName = string.Format(CultureInfo.InvariantCulture, "{0}{1}", name, i.ToString("000"));
string newName = string.Format(CultureInfo.InvariantCulture, "{0}{1}", name, i.ToString("000", CultureInfo.InvariantCulture));
string newPath = string.Format(CultureInfo.InvariantCulture, "{0}/Mass/{1}", path, newName);
itemsCreated.Add(CreateDataItemVariable(parent, newPath, newName, dataType, valueRank));
}//for i
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

using System;
using System.Collections.Generic;
using System.Globalization;
using Opc.Ua;
using Range = Opc.Ua.Range;

Expand Down Expand Up @@ -142,7 +143,7 @@ public ServiceResult OnWriteAnalogValue(
element = ((Variant)element).Value;
}

double elementNumber = Convert.ToDouble(element);
double elementNumber = Convert.ToDouble(element, CultureInfo.InvariantCulture);

if (elementNumber > range.High || elementNumber < range.Low)
{
Expand All @@ -153,7 +154,7 @@ public ServiceResult OnWriteAnalogValue(
return ServiceResult.Good;
}

double number = Convert.ToDouble(value);
double number = Convert.ToDouble(value, CultureInfo.InvariantCulture);

if (number > range.High || number < range.Low)
{
Expand Down
10 changes: 5 additions & 5 deletions Fuzzing/Encoders/Fuzz.Tests/Opc.Ua.Encoders.Fuzz.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit.Console" Version="3.18.3" />
<PackageReference Include="NUnit" Version="4.3.2" />
<PackageReference Include="NUnit.Console" Version="3.19.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="coverlet.collector" Version="6.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SharpFuzz" Version="2.1.1" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.2" />
<PackageReference Include="SharpFuzz" Version="2.2.0" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<AssemblyName>Opc.Ua.Client.ComplexTypes</AssemblyName>
<AssemblyName>$(AssemblyPrefix).Client.ComplexTypes</AssemblyName>
<TargetFrameworks>$(LibxTargetFrameworks)</TargetFrameworks>
<PackageId>OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes</PackageId>
<PackageId>$(PackagePrefix).Opc.Ua.Client.ComplexTypes</PackageId>
<RootNameSpace>Opc.Ua.Client.ComplexTypes</RootNameSpace>
<Description>OPC UA Complex Types Client Class Library</Description>
<IsPackable>true</IsPackable>
Expand Down
Loading

0 comments on commit 60152f1

Please sign in to comment.