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); }
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); }
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(); }