Пример #1
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}");
     }
 }
Пример #2
0
 public void Dispose()
 {
     try
     {
         if (!Disposed)
         {
             VoltagesReal.Dispose();
             VoltagesIm.Dispose();
             CurrentsReal?.Dispose();
             CurrentsIm.Dispose();
             Saturation.Dispose();
             Timestamps.Dispose();
             PacketIds?.Dispose();
             ElectrodeTaskWriter.Dispose();
             Hdf5.CloseGroup(GroupId);
             Disposed = true;
         }
     }
     catch (Exception e)
     {
         Logger.LogError($"Error during dispose of EIT: {e.Message}");
     }
 }