How to handle different namespaces in OPCUA Server using c#.net

问题描述 投票:0回答:0

我使用 CSharp .net 开发了 OPCUA 服务器应用程序 我在 Namespace.cs 中维护两个命名空间,例如(public const string Demo = http://demo.demo1/Demo1; public const string Demo2 = http://demo.demo2/Demo2

我想根据我们不同的

OPCUA Server
项目在Demo1配置类中传递以上命名空间,而不创建单独的配置类和节点管理器类。 目前命名空间属性只接受常量 [DataContract(Namespace = Namespaces.Demo)] 那么如何处理这个,任何人都可以帮忙。

c# .net .net-core opc-ua
© www.soinside.com 2019 - 2024. All rights reserved.