Skip to content

Commit

Permalink
Updated sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
seayxu committed Dec 14, 2023
1 parent b6d0cb7 commit 61c467d
Show file tree
Hide file tree
Showing 29 changed files with 569 additions and 1,161 deletions.
120 changes: 120 additions & 0 deletions GodSharp.OpcSample.sln
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,148 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GodSharpOpcDaBenchmark.Auto
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "GodSharpOpcDaBenchmark.Shared", "benchmarks\GodSharpOpcDaBenchmark.Shared\GodSharpOpcDaBenchmark.Shared.shproj", "{94A08AB6-E4D5-416C-8679-0BFB0D26E6B4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GodSharpOpcUaServer", "src\GodSharpOpcUaServer\GodSharpOpcUaServer.csproj", "{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GodSharpOpcUaDiscoveryServer", "src\GodSharpOpcUaDiscoveryServer\GodSharpOpcUaDiscoveryServer.csproj", "{C02C2C5C-B5FB-49B4-972C-66A49D30C841}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{BE47ABB9-2323-48A5-95F0-DE07E12845E0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GodSharp.Da.Test.Graybox", "test\GodSharp.Da.Test.Graybox\GodSharp.Da.Test.Graybox.csproj", "{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "GodSharp.Da.Test.Shared", "test\GodSharp.Da.Test.Shared\GodSharp.Da.Test.Shared.shproj", "{0D0223C7-4F74-4599-AC43-70390B959C28}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GodSharp.Da.Test.Automation", "test\GodSharp.Da.Test.Automation\GodSharp.Da.Test.Automation.csproj", "{EE39F376-EF99-4FB3-A1A8-7F9604E20245}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Debug|x64.ActiveCfg = Debug|Any CPU
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Debug|x64.Build.0 = Debug|Any CPU
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Debug|x86.ActiveCfg = Debug|x86
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Debug|x86.Build.0 = Debug|x86
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Release|Any CPU.Build.0 = Release|Any CPU
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Release|x64.ActiveCfg = Release|Any CPU
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Release|x64.Build.0 = Release|Any CPU
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Release|x86.ActiveCfg = Release|x86
{00DEC5A4-967C-455C-A1AB-42569FF5DA5C}.Release|x86.Build.0 = Release|x86
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Debug|x64.ActiveCfg = Debug|Any CPU
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Debug|x64.Build.0 = Debug|Any CPU
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Debug|x86.ActiveCfg = Debug|x86
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Debug|x86.Build.0 = Debug|x86
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Release|Any CPU.Build.0 = Release|Any CPU
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Release|x64.ActiveCfg = Release|Any CPU
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Release|x64.Build.0 = Release|Any CPU
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Release|x86.ActiveCfg = Release|x86
{60FABA2F-BBB0-4A61-B7D1-F11363FE14D3}.Release|x86.Build.0 = Release|x86
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Debug|x64.ActiveCfg = Debug|Any CPU
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Debug|x64.Build.0 = Debug|Any CPU
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Debug|x86.ActiveCfg = Debug|x86
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Debug|x86.Build.0 = Debug|x86
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Release|Any CPU.Build.0 = Release|Any CPU
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Release|x64.ActiveCfg = Release|Any CPU
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Release|x64.Build.0 = Release|Any CPU
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Release|x86.ActiveCfg = Release|x86
{FAA99E90-6BED-4B51-9671-20D25A23D9FD}.Release|x86.Build.0 = Release|x86
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Debug|x64.ActiveCfg = Debug|Any CPU
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Debug|x64.Build.0 = Debug|Any CPU
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Debug|x86.ActiveCfg = Debug|x86
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Debug|x86.Build.0 = Debug|x86
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Release|Any CPU.Build.0 = Release|Any CPU
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Release|x64.ActiveCfg = Release|Any CPU
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Release|x64.Build.0 = Release|Any CPU
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Release|x86.ActiveCfg = Release|x86
{97588EC6-5637-4F8E-B771-61A3E83FB46B}.Release|x86.Build.0 = Release|x86
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Debug|x64.ActiveCfg = Debug|Any CPU
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Debug|x64.Build.0 = Debug|Any CPU
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Debug|x86.ActiveCfg = Debug|x86
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Debug|x86.Build.0 = Debug|x86
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Release|Any CPU.Build.0 = Release|Any CPU
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Release|x64.ActiveCfg = Release|Any CPU
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Release|x64.Build.0 = Release|Any CPU
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Release|x86.ActiveCfg = Release|x86
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279}.Release|x86.Build.0 = Release|x86
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Debug|Any CPU.Build.0 = Debug|Any CPU
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Debug|x64.ActiveCfg = Debug|Any CPU
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Debug|x64.Build.0 = Debug|Any CPU
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Debug|x86.ActiveCfg = Debug|x86
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Debug|x86.Build.0 = Debug|x86
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Release|Any CPU.ActiveCfg = Release|Any CPU
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Release|Any CPU.Build.0 = Release|Any CPU
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Release|x64.ActiveCfg = Release|Any CPU
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Release|x64.Build.0 = Release|Any CPU
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Release|x86.ActiveCfg = Release|x86
{105C7762-A6B6-470B-B8FC-ABBB647F0107}.Release|x86.Build.0 = Release|x86
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Debug|x64.ActiveCfg = Debug|Any CPU
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Debug|x64.Build.0 = Debug|Any CPU
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Debug|x86.ActiveCfg = Debug|x86
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Debug|x86.Build.0 = Debug|x86
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Release|Any CPU.Build.0 = Release|Any CPU
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Release|x64.ActiveCfg = Release|Any CPU
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Release|x64.Build.0 = Release|Any CPU
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Release|x86.ActiveCfg = Release|x86
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428}.Release|x86.Build.0 = Release|x86
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Debug|x64.ActiveCfg = Debug|Any CPU
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Debug|x64.Build.0 = Debug|Any CPU
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Debug|x86.ActiveCfg = Debug|x86
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Debug|x86.Build.0 = Debug|x86
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Release|Any CPU.Build.0 = Release|Any CPU
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Release|x64.ActiveCfg = Release|Any CPU
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Release|x64.Build.0 = Release|Any CPU
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Release|x86.ActiveCfg = Release|x86
{C02C2C5C-B5FB-49B4-972C-66A49D30C841}.Release|x86.Build.0 = Release|x86
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Debug|x64.ActiveCfg = Debug|Any CPU
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Debug|x64.Build.0 = Debug|Any CPU
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Debug|x86.ActiveCfg = Debug|x86
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Debug|x86.Build.0 = Debug|x86
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Release|Any CPU.Build.0 = Release|Any CPU
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Release|x64.ActiveCfg = Release|Any CPU
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Release|x64.Build.0 = Release|Any CPU
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Release|x86.ActiveCfg = Release|x86
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3}.Release|x86.Build.0 = Release|x86
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Debug|x64.ActiveCfg = Debug|Any CPU
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Debug|x64.Build.0 = Debug|Any CPU
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Debug|x86.ActiveCfg = Debug|x86
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Debug|x86.Build.0 = Debug|x86
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Release|Any CPU.Build.0 = Release|Any CPU
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Release|x64.ActiveCfg = Release|Any CPU
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Release|x64.Build.0 = Release|Any CPU
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Release|x86.ActiveCfg = Release|x86
{EE39F376-EF99-4FB3-A1A8-7F9604E20245}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -68,14 +180,22 @@ Global
{9E695F6B-F15C-400F-B4EA-AC84BCBF1279} = {A043A5A4-FD9A-4FCE-A39F-1CAFEC766C25}
{105C7762-A6B6-470B-B8FC-ABBB647F0107} = {A043A5A4-FD9A-4FCE-A39F-1CAFEC766C25}
{94A08AB6-E4D5-416C-8679-0BFB0D26E6B4} = {A043A5A4-FD9A-4FCE-A39F-1CAFEC766C25}
{1EB95B7A-818C-4DE3-85B4-68E97BBA7428} = {586EA65A-842A-4F7C-B40B-6223CB573843}
{C02C2C5C-B5FB-49B4-972C-66A49D30C841} = {586EA65A-842A-4F7C-B40B-6223CB573843}
{E1B96004-AF4F-4B2B-A56B-A4DD5D717AD3} = {BE47ABB9-2323-48A5-95F0-DE07E12845E0}
{0D0223C7-4F74-4599-AC43-70390B959C28} = {BE47ABB9-2323-48A5-95F0-DE07E12845E0}
{EE39F376-EF99-4FB3-A1A8-7F9604E20245} = {BE47ABB9-2323-48A5-95F0-DE07E12845E0}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D14361A1-4BFC-47C5-AE63-6891A1645FDB}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
test\GodSharp.Da.Test.Shared\GodSharp.Da.Test.Shared.projitems*{0d0223c7-4f74-4599-ac43-70390b959c28}*SharedItemsImports = 13
benchmarks\GodSharpOpcDaBenchmark.Shared\GodSharpOpcDaBenchmark.Shared.projitems*{105c7762-a6b6-470b-b8fc-abbb647f0107}*SharedItemsImports = 5
benchmarks\GodSharpOpcDaBenchmark.Shared\GodSharpOpcDaBenchmark.Shared.projitems*{94a08ab6-e4d5-416c-8679-0bfb0d26e6b4}*SharedItemsImports = 13
benchmarks\GodSharpOpcDaBenchmark.Shared\GodSharpOpcDaBenchmark.Shared.projitems*{97588ec6-5637-4f8e-b771-61a3e83fb46b}*SharedItemsImports = 5
benchmarks\GodSharpOpcDaBenchmark.Shared\GodSharpOpcDaBenchmark.Shared.projitems*{9e695f6b-f15c-400f-b4ea-ac84bcbf1279}*SharedItemsImports = 5
test\GodSharp.Da.Test.Shared\GodSharp.Da.Test.Shared.projitems*{e1b96004-af4f-4b2b-a56b-a4dd5d717ad3}*SharedItemsImports = 5
test\GodSharp.Da.Test.Shared\GodSharp.Da.Test.Shared.projitems*{ee39f376-ef99-4fb3-a1a8-7f9604e20245}*SharedItemsImports = 5
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>10.0</LangVersion>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<PlatformTarget>x86</PlatformTarget>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<Nullable>enable</Nullable>
<LangVersion>10.0</LangVersion>
<PlatformTarget>x86</PlatformTarget>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>10.0</LangVersion>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/GodSharpOpcDaSample/GodSharpOpcDaSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFrameworks>net40;net6.0;</TargetFrameworks>
<PlatformTarget>x86</PlatformTarget>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>

<ItemGroup>
Expand Down
66 changes: 33 additions & 33 deletions src/GodSharpOpcDaSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,39 @@ private static void Main(string[] args)
// initial with data info
// The group `Name`, `ClientHandle` is unique and required, `UpdateRate` is required too.
// The tag `ItemName`, `ClientHandle` is unique and required.
var groups = new List<GroupData>
{
new GroupData
{
Name = "default", UpdateRate = 100, ClientHandle = 010, IsSubscribed = true,
Tags = new List<Tag>
{
new Tag("Test.Simulator.Booleans.B0001", 011),
new Tag("Test.Simulator.Numbers.N0001", 012),
new Tag("Test.Simulator.Characters.C0001", 013)
}
},
new GroupData
{
Name = "group1", UpdateRate = 100, ClientHandle = 100,IsSubscribed = true,
Tags = new List<Tag>
{
new Tag("Test.Simulator.Booleans.B0002", 101),
new Tag("Test.Simulator.Numbers.N0002", 102),
new Tag("Test.Simulator.Characters.C0002", 103)
}
},
new GroupData
{
Name = "group2", UpdateRate = 100, ClientHandle = 200,IsSubscribed = false,
Tags = new List<Tag>
{
new Tag("Test.Simulator.Booleans.B0003", 201),
new Tag("Test.Simulator.Numbers.N0003", 202),
new Tag("Test.Simulator.Characters.C0003", 203)
}
}
};
var groups = new List<GroupData>
{
new GroupData
{
Name = "default", UpdateRate = 100, ClientHandle = 010, IsSubscribed = true,
Tags = new List<Tag>
{
new Tag("Test.Simulator.Booleans.B0001", 011),
new Tag("Test.Simulator.Numbers.N0001", 012),
new Tag("Test.Simulator.Characters.C0001", 013)
}
},
new GroupData
{
Name = "group1", UpdateRate = 100, ClientHandle = 100,IsSubscribed = true,
Tags = new List<Tag>
{
new Tag("Test.Simulator.Booleans.B0002", 101),
new Tag("Test.Simulator.Numbers.N0002", 102),
new Tag("Test.Simulator.Characters.C0002", 103)
}
},
new GroupData
{
Name = "group2", UpdateRate = 100, ClientHandle = 200,IsSubscribed = false,
Tags = new List<Tag>
{
new Tag("Test.Simulator.Booleans.B0003", 201),
new Tag("Test.Simulator.Numbers.N0003", 202),
new Tag("Test.Simulator.Characters.C0003", 203)
}
}
};

var server = new ServerData
{
Expand Down
10 changes: 3 additions & 7 deletions src/GodSharpOpcUaClientSample/GodSharpOpcUaClientSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GodSharp.Opc.Ua.Client" Version="2022.205.12.1" />
<PackageReference Include="GodSharp.Extensions.Opc.Ua.Generator" Version="2022.205.10.1" />
<PackageReference Include="GodSharp.Extensions.Opc.Ua.MsBuild" Version="2022.205.10.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="GodSharp.Opc.Ua.Client" Version="2023.412.14.1" />
<PackageReference Include="Mapster" Version="7.3.0" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes" Version="1.4.368.53" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes" Version="1.4.371.60" />
</ItemGroup>

</Project>
Loading

0 comments on commit 61c467d

Please sign in to comment.