public void CompleteAdding() { if (completed) { return; } completed = true; EcgSamplesData.CompleteAdding(); }
public void Enqueue(ECGFrame ecgFrame) { if (!completed) { if (!StartDateTime.HasValue) { StartDateTime = ecgFrame.Timestamp; } EcgSamplesData.Enqueue(ecgFrame); } }
public void Dispose() { try { if (!Disposed) { UnFiltered.Dispose(); Filtered.Dispose(); Timestamps.Dispose(); PacketIds?.Dispose(); EcgSamplesData.Dispose(); EcgTaskWriter.Dispose(); Hdf5.CloseGroup(GroupId); Disposed = true; } } catch (Exception e) { Logger.LogError($"Error during dispose of ECG: {e.Message}"); } }