using AVEVA.Historian.Client.Models; namespace AVEVA.Historian.Client.StoreForward; /// /// Default that forwards buffered writes through a /// . Historical values replay via /// and events via /// . /// public sealed class HistorianClientWriteSink : IHistorianWriteSink { private readonly HistorianClient _client; public HistorianClientWriteSink(HistorianClient client) { _client = client ?? throw new ArgumentNullException(nameof(client)); } public Task SendHistoricalValuesAsync(string tag, IReadOnlyList values, CancellationToken cancellationToken) => _client.AddHistoricalValuesAsync(tag, values, cancellationToken); public Task SendEventAsync(HistorianEvent historianEvent, CancellationToken cancellationToken) => _client.SendEventAsync(historianEvent, cancellationToken); }