Пример #1
0
        public void configTest()
        {
            JObject   j        = JObject.Parse("{opcServerURL:'something_here', reconnectPeriod: 20, publishingInterval: 5000}");
            OPCclient temp_opc = new OPCclient(j);

            Assert.True(temp_opc.user_config.opcServerURL == "something_here");
            Assert.True(temp_opc.user_config.reconnectPeriod == 20);
            Assert.True(temp_opc.user_config.publishingInterval == 5000);
        }
Пример #2
0
        public serviceManager(JObject config)
        {
            _config = config;

            opc = new OPCclient(config);
            db  = new cacheDB(config);

            connector_list = new List <IOPCconnect> {
            };

            // setting up the comunication line back to the manager
            opc.setPointerToManager(this);
            db.setPointerToManager(this);
        }
Пример #3
0
        public void _init_constructor(JObject config)
        {
            _config = config;
            init_logging(config.ToObject <logConfigWrapper>().loggerConfig);
            logger         = LogManager.GetLogger(this.GetType().Name);
            opc            = new OPCclient(config);
            db             = new cacheDB(config);
            connector_list = new List <IOPCconnect> {
            };

            // setting up the comunication line back to the manager
            opc.setPointerToManager(this);
            db.setPointerToManager(this);
            connectOpcClient();
            browseNodesFillCache();
        }