public void Refresh() { ConnectableItemChanged?.Invoke( new ConnectableItemChangingContext(null, ItemModifyingTypeEnum.Refresh)); foreach (var item in ConnectableItems) { try { item.DeviceConnection.CloseConnection(); } catch (Exception ex) { _logService.LogMessage(ex.Message); } } ConnectableItems.Clear(); }
public void Dispose() { ConnectableItems?.Clear(); RefreshName(); }