public void TearDown()
 {
     _handler1?.Dispose();
     _handler2?.Dispose();
     _port1?.Dispose();
     _port2?.Dispose();
 }
示例#2
0
        public void TearDown()
        {
            _device?.Dispose();
            _device = null;

            _port?.Dispose();
            _port = null;
        }
示例#3
0
 public void Dispose()
 {
     Writer.Dispose();
     Motor.Dispose();
 }
示例#4
0
 public void TearDown()
 {
     _motor?.Dispose();
     _port?.Dispose();
 }