Exemple #1
0
        public void CompleteAdding()
        {
            if (completed)
            {
                return;
            }

            completed = true;
            EcgSamplesData.CompleteAdding();
        }
Exemple #2
0
        public void Enqueue(ECGFrame ecgFrame)
        {
            if (!completed)
            {
                if (!StartDateTime.HasValue)
                {
                    StartDateTime = ecgFrame.Timestamp;
                }

                EcgSamplesData.Enqueue(ecgFrame);
            }
        }
Exemple #3
0
 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}");
     }
 }