Beispiel #1
0
 public void ChangePort(string newPortName)
 {
     lock (SynchronizationObject) {
         Port = PortFactory.NewOrNull(newPortName);
     }
 }
Beispiel #2
0
 public void DisposePort()
 {
     lock (SynchronizationObject) {
         Port = null;
     }
 }