using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using WeldingCommon.Data.Services.History; namespace ILSOS_PrismaticGun.Process.Services.History { public sealed class CellHistoryService : IHistoryWriter, IHistoryReader, IDisposable { private readonly HistoryService _core; public CellHistoryService(int maxCount = 50, int pumpMs = 100) { _core = new HistoryService(maxCount, pumpMs); _ = _core.GetHistory(eStage.A); _ = _core.GetHistory(eStage.B); } public ReadOnlyObservableCollection HistoryA => _core.GetHistory(eStage.A); public ReadOnlyObservableCollection HistoryB => _core.GetHistory(eStage.B); public void Append(eStage stage, T snapshot) => _core.Append(stage, snapshot); public void Clear(eStage stage) => _core.Clear(stage); public void Dispose() => _core.Dispose(); } }