public void Dispose() { try { if (!Disposed) { UnFiltered.Dispose(); Filtered.Dispose(); Timestamps.Dispose(); PacketIds?.Dispose(); KalpaClocks?.Dispose(); EcgSamplesData.Dispose(); EcgTaskWriter.Dispose(); Hdf5.CloseGroup(GroupId); Disposed = true; } } catch (Exception e) { Logger.LogError($"Error during dispose of ECG: {e.Message}"); } }
public void Dispose() { try { if (!Disposed) { VoltagesReal.Dispose(); VoltagesIm.Dispose(); CurrentsReal?.Dispose(); CurrentsIm.Dispose(); Saturation.Dispose(); Timestamps.Dispose(); PacketIds?.Dispose(); KalpaClocks?.Dispose(); ElectrodeTaskWriter.Dispose(); Hdf5.CloseGroup(GroupId); Disposed = true; } } catch (Exception e) { Logger.LogError($"Error during dispose of EIT: {e.Message}"); } }