File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 36
36
<PackageReference Include =" OpenTelemetry.Instrumentation.Runtime" Version =" 1.9.0" />
37
37
<PackageReference Include =" Serilog.Extensions.Logging.File" Version =" 3.0.0" />
38
38
<PackageReference Update =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" />
39
- <PackageReference Update =" Nerdbank.GitVersioning" Version =" 3.6.143 " />
39
+ <PackageReference Update =" Nerdbank.GitVersioning" Version =" 3.6.146 " />
40
40
</ItemGroup >
41
41
42
42
<!-- When referencing a local build of the OPC UA stack for testing, define the constant UseLocalOpcUaSdk in the file Directory.Build.targets -->
43
43
<Choose >
44
44
<When Condition =" '$(Configuration)'=='Debug'" >
45
45
<ItemGroup Condition =" !$(DefineConstants.Contains(UseLocalOpcUaSdk))" >
46
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Configuration.Debug" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
47
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Server.Debug" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
46
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Configuration.Debug" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
47
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Server.Debug" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
48
48
</ItemGroup >
49
49
<ItemGroup Condition =" $(DefineConstants.Contains(UseLocalOpcUaSdk))" >
50
50
<ProjectReference Include =" ..\..\UA-.NETStandard\Libraries\Opc.Ua.Configuration\Opc.Ua.Configuration.csproj" />
53
53
</When >
54
54
<When Condition =" '$(Configuration)'=='Release'" >
55
55
<ItemGroup Condition =" !$(DefineConstants.Contains(UseLocalOpcUaSdk))" >
56
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Configuration" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
56
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Configuration" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
57
57
<PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Server" Version =" [1.5.374.124]" NoWarn =" NU5104" />
58
58
</ItemGroup >
59
59
<ItemGroup Condition =" $(DefineConstants.Contains(UseLocalOpcUaSdk))" >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace OpcPlc.Tests;
10
10
/// Tests for Metrics.
11
11
/// </summary>
12
12
[ NonParallelizable ]
13
- internal class MetricsTests
13
+ internal class MetricsTests : SimulatorTestsBase
14
14
{
15
15
private readonly MeterListener _meterListener ;
16
16
private readonly Dictionary < string , object > _metrics ;
@@ -83,8 +83,6 @@ public void TestAddMonitoredItemCount()
83
83
[ Test ]
84
84
public void TestAddPublishedCount ( )
85
85
{
86
- var sessionId = Guid . NewGuid ( ) . ToString ( ) ;
87
- var subscriptionId = Guid . NewGuid ( ) . ToString ( ) ;
88
86
MetricsHelper . AddPublishedCount ( 1 , 0 ) ;
89
87
_metrics . TryGetValue ( "opc_plc_published_count_with_type" , out var counter ) . Should ( ) . BeTrue ( ) ;
90
88
counter . Should ( ) . Be ( 1 ) ;
Original file line number Diff line number Diff line change 19
19
<Choose >
20
20
<When Condition =" '$(Configuration)'=='Release'" >
21
21
<ItemGroup >
22
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Server" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
23
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Configuration" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
24
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
22
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Server" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
23
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Configuration" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
24
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
25
25
</ItemGroup >
26
26
</When >
27
27
<Otherwise >
28
28
<ItemGroup >
29
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Server.Debug" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
30
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Configuration.Debug" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
31
- <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes.Debug" Version =" [1.5.374.124 ]" NoWarn =" NU5104" />
29
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Server.Debug" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
30
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Configuration.Debug" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
31
+ <PackageReference Include =" OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes.Debug" Version =" [1.5.374.126 ]" NoWarn =" NU5104" />
32
32
</ItemGroup >
33
33
</Otherwise >
34
34
</Choose >
You can’t perform that action at this time.
0 commit comments