public void Start() { if (_port == null) { _port = _config.Create(); _task = Task.Factory.StartNew(CreateInstance); } }
public override IDataAdapter Connect(ProxyToken token, Logger logger, MetaDictionary meta, MetaDictionary globalMeta, PropertyBag properties, CredentialsManagerService credmgr) { return(new SerialPortDataAdapter(_config.Create())); }