Exemple #1
0
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public RelayNodeManager(IServerInternal server, ApplicationConfiguration configuration)
            :
            base(server, configuration, "https://opc.com/")
        {
            SystemContext.NodeIdFactory = this;

            // get the configuration for the node manager.
            m_configuration = configuration.ParseExtension <ReferenceServerConfiguration>();

            // use suitable defaults if no configuration exists.
            if (m_configuration == null)
            {
                m_configuration = new ReferenceServerConfiguration();
            }

            m_dynamicNodes = new List <BaseDataVariableState>();
        }
Exemple #2
0
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public RelayNodeManager(IServerInternal server, ApplicationConfiguration configuration)
            :
            base(server, configuration, "https://opc.com/")
        {
            SystemContext.NodeIdFactory = this;

            // get the configuration for the node manager.
#pragma warning disable CS0436 // The type 'ReferenceServerConfiguration' in 'C:\Users\adam\Desktop\projects\Working OPCServer\SampleApplications\Samples\Server\RelayNodes.cs' conflicts with the imported type 'ReferenceServerConfiguration' in 'Opc.Ua.SampleServer, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'C:\Users\adam\Desktop\projects\Working OPCServer\SampleApplications\Samples\Server\RelayNodes.cs'.
            m_configuration = configuration.ParseExtension <ReferenceServerConfiguration>();
#pragma warning restore CS0436 // The type 'ReferenceServerConfiguration' in 'C:\Users\adam\Desktop\projects\Working OPCServer\SampleApplications\Samples\Server\RelayNodes.cs' conflicts with the imported type 'ReferenceServerConfiguration' in 'Opc.Ua.SampleServer, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'C:\Users\adam\Desktop\projects\Working OPCServer\SampleApplications\Samples\Server\RelayNodes.cs'.

            // use suitable defaults if no configuration exists.
            if (m_configuration == null)
            {
#pragma warning disable CS0436 // The type 'ReferenceServerConfiguration' in 'C:\Users\adam\Desktop\projects\Working OPCServer\SampleApplications\Samples\Server\RelayNodes.cs' conflicts with the imported type 'ReferenceServerConfiguration' in 'Opc.Ua.SampleServer, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'C:\Users\adam\Desktop\projects\Working OPCServer\SampleApplications\Samples\Server\RelayNodes.cs'.
                m_configuration = new ReferenceServerConfiguration();
#pragma warning restore CS0436 // The type 'ReferenceServerConfiguration' in 'C:\Users\adam\Desktop\projects\Working OPCServer\SampleApplications\Samples\Server\RelayNodes.cs' conflicts with the imported type 'ReferenceServerConfiguration' in 'Opc.Ua.SampleServer, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'C:\Users\adam\Desktop\projects\Working OPCServer\SampleApplications\Samples\Server\RelayNodes.cs'.
            }

            m_dynamicNodes = new List <BaseDataVariableState>();
        }