private void _disposePorts() { foreach(var registration in _ports) { registration.Dispose(); } _ports.Clear(); }