Пример #1
0
 public OpcDaMachine(string connectionString, IEnumerable <AddressUnit> getAddresses, bool keepConnect)
     : base(getAddresses, keepConnect)
 {
     BaseUtility        = new OpcDaUtility(connectionString);
     AddressCombiner    = new AddressCombinerSingle();
     AddressCombinerSet = new AddressCombinerSingle();
 }
Пример #2
0
 /// <summary>
 ///     构造函数
 /// </summary>
 /// <param name="connectionString">连接地址</param>
 /// <param name="getAddresses">需要读写的数据</param>
 /// <param name="keepConnect">是否保持连接</param>
 /// <param name="isRegexOn">是否开启正则匹配</param>
 public OpcDaMachine(string connectionString, IEnumerable <AddressUnit <TUnitKey> > getAddresses, bool keepConnect, bool isRegexOn = false)
     : base(getAddresses, keepConnect)
 {
     BaseUtility = new OpcDaUtility(connectionString, isRegexOn);
     ((OpcUtility)BaseUtility).GetSeperator +=
         () => ((AddressFormaterOpc <TKey, TUnitKey>)AddressFormater).Seperator;
 }