/// <summary> /// Initializes the node manager. /// </summary> public TestDataNodeManager(Opc.Ua.Server.IServerInternal server, ApplicationConfiguration configuration, string[] namespaceUris) : base(server, configuration) { // update the namespaces. NamespaceUris = namespaceUris; Server.Factory.AddEncodeableTypes(typeof(TestDataNodeManager).Assembly.GetExportedTypes().Where(t => t.FullName.StartsWith(typeof(TestDataNodeManager).Namespace))); // get the configuration for the node manager. m_configuration = configuration.ParseExtension <TestDataNodeManagerConfiguration>(); // use suitable defaults if no configuration exists. if (m_configuration == null) { m_configuration = new TestDataNodeManagerConfiguration(); } m_lastUsedId = m_configuration.NextUnusedId - 1; // create the object used to access the test system. m_system = new TestDataSystem(this, server.NamespaceUris, server.ServerUris); // update the default context. SystemContext.SystemHandle = m_system; }
/// <summary> /// Initializes the node manager. /// </summary> public TestDataNodeManager(Opc.Ua.Server.IServerInternal server, ApplicationConfiguration configuration) : base(server, configuration) { // update the namespaces. List <string> namespaceUris = new List <string>(); namespaceUris.Add(Namespaces.TestData); namespaceUris.Add(Namespaces.TestData + "/Instance"); NamespaceUris = namespaceUris; // get the configuration for the node manager. m_configuration = configuration.ParseExtension <TestDataNodeManagerConfiguration>(); // use suitable defaults if no configuration exists. if (m_configuration == null) { m_configuration = new TestDataNodeManagerConfiguration(); } m_lastUsedId = m_configuration.NextUnusedId - 1; // create the object used to access the test system. m_system = new TestDataSystem(this, server.NamespaceUris, server.ServerUris); // update the default context. SystemContext.SystemHandle = m_system; }
/// <summary> /// Initializes the node manager. /// </summary> public TestDataNodeManager(Opc.Ua.Server.IServerInternal server, ApplicationConfiguration configuration) : base(server, configuration) { // update the namespaces. List<string> namespaceUris = new List<string>(); namespaceUris.Add(Namespaces.TestData); namespaceUris.Add(Namespaces.TestData + "/Instance"); NamespaceUris = namespaceUris; // get the configuration for the node manager. m_configuration = configuration.ParseExtension<TestDataNodeManagerConfiguration>(); // use suitable defaults if no configuration exists. if (m_configuration == null) { m_configuration = new TestDataNodeManagerConfiguration(); } m_lastUsedId = m_configuration.NextUnusedId-1; // create the object used to access the test system. m_system = new TestDataSystem(this, server.NamespaceUris, server.ServerUris); // update the default context. SystemContext.SystemHandle = m_system; }