public void ChangePort(string newPortName) { lock (SynchronizationObject) { Port = PortFactory.NewOrNull(newPortName); } }
public void DisposePort() { lock (SynchronizationObject) { Port = null; } }