namespace ZB.MOM.WW.OtOpcUa.Core.Abstractions; /// /// Optional physical acquisition capability. Successful establishment acknowledges the current /// revision and supported nominal cadence; it does not guarantee actual device timing. /// Unsupported drivers must not claim this capability. /// public interface IAcknowledgedAcquisitionSource { /// /// Installs the complete reference set and callback. The callback may run before this task /// completes. It delivers fresh acquisition results, not replayed cache values. The caller /// must fence revisions and synchronously copy mutable values into bounded owned storage /// before returning; the producer retains ownership until then. Failed or superseded /// establishment must release any returned physical subscription handle. /// Task SubscribeAcquisitionAsync(AcquisitionSubscriptionRequest request, Action onAcquired, CancellationToken cancellationToken); } /// /// An acknowledged acquisition that can replace the ordinary baseline subscription. /// The returned handle produces the same initial and subsequent native value and status /// change events as , while the acquisition /// callback reports every physical acquisition, including unchanged successful reads. /// A driver must explicitly implement this capability only when both feeds describe the /// same physical subscription and preserve their ordinary handle and ownership semantics. /// public interface IAcknowledgedBaselineAcquisitionSource : IAcknowledgedAcquisitionSource { } /// Complete physical interest and revision fence for one producer incarnation. public sealed record AcquisitionSubscriptionRequest(IReadOnlyList FullReferences, TimeSpan RequestedSamplingInterval, long DesiredRevision, long ProducerIncarnation); /// The installed physical handle, supported nominal cadence, and acknowledged fence. public sealed record AcquisitionSubscriptionResult(ISubscriptionHandle Handle, TimeSpan NominalSamplingInterval, long DesiredRevision, long ProducerIncarnation); /// Fresh device acquisition results under a specific desired revision and producer incarnation. public sealed record AcquisitionBatch(long DesiredRevision, long ProducerIncarnation, IReadOnlyList Items);