Skip to content

Commit 6ee858d

Browse files
Copilotmarcschier
andauthored
Remove duplicate GDS type registration commit in server startup path (#3676)
* Initial plan * Remove duplicate GDS type registration and add startup coverage test Agent-Logs-Url: https://github.com/OPCFoundation/UA-.NETStandard/sessions/86388b62-268b-4598-ab31-ddd820d414dc Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
1 parent 26a0b21 commit 6ee858d

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Libraries/Opc.Ua.Gds.Server.Common/ApplicationsNodeManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ public ApplicationsNodeManager(
137137
m_logger.LogInformation("Database Initialized!");
138138
}
139139

140-
Server.MessageContext.Factory.Builder.AddOpcUaGds().Commit();
141140
}
142141

143142
/// <summary>

Tests/Opc.Ua.Gds.Tests/CustomCertificateGroupIntegrationTest.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ public async Task OneTimeTearDownAsync()
9696
}
9797
}
9898

99+
[Test]
100+
public void ServerRegistersGdsEncodeableTypesOnStartup()
101+
{
102+
Assert.That(m_server.Server.MessageContext.Factory.ContainsEncodeableType(
103+
DataTypeIds.ApplicationRecordDataType), Is.True);
104+
}
105+
99106
[Test]
100107
public async Task CustomCertificateGroupAppearsInGetCertificateGroupsAsync()
101108
{

0 commit comments

Comments
 (0)