Beispiel #1
0
 public static OpcUaConnector Instance(string host)
 {
     if (!_instances.ContainsKey(host))
     {
         var connector = new OpcUaConnector(host);
         _instances.Add(host, connector);
     }
     return(_instances[host]);
 }
Beispiel #2
0
 /// <summary>
 ///     构造函数
 /// </summary>
 /// <param name="host">Opc UA服务地址</param>
 /// <param name="isRegexOn">是否开启正则匹配</param>
 public OpcUaProtocalLinker(string host, bool isRegexOn)
 {
     BaseConnector = OpcUaConnector.Instance(host, isRegexOn);
 }
 public OpcUaProtocalLinker(string host)
 {
     BaseConnector = OpcUaConnector.Instance(host);
 }