27 lines
1.4 KiB
C#
27 lines
1.4 KiB
C#
namespace ZB.MOM.WW.OtOpcUa.Core.Abstractions.DataConnections;
|
|
|
|
/// <summary>Captured sample/route authority, independent of each local monitored item's caller.</summary>
|
|
public interface IProjectedSamplePublicationProof
|
|
{
|
|
/// <summary>Checks the original live source, route, role and lease without network work.</summary>
|
|
bool IsValid { get; }
|
|
/// <summary>Stable source ownership; distinct sample witnesses may share this identity.</summary>
|
|
object SourceIdentity => this;
|
|
/// <summary>Source and route lifetime, independent of one sample's age.</summary>
|
|
bool IsSourceValid => IsValid;
|
|
TimeProvider Clock { get; }
|
|
/// <summary>Synchronously invalidates value readiness after failed or lost ingress; metadata may remain browsable.</summary>
|
|
void Invalidate();
|
|
}
|
|
|
|
/// <summary>An imported sample retaining original ingress age through local actor and SDK queues.</summary>
|
|
public sealed record ProjectedValueWrite(DataRealm Realm, string LocalIdentifier, long ProjectionGeneration,
|
|
ServingIdentity Serving, DataValueSnapshot Snapshot, DataAgeBounds OriginAgeBounds, long ReceivedTimestamp,
|
|
IProjectedSamplePublicationProof Proof, bool IsCompleteSnapshot = false, long? SourceVersion = null);
|
|
|
|
/// <summary>Applies imported values only after checking their captured proof at the actual SDK boundary.</summary>
|
|
public interface IProjectedValueSink
|
|
{
|
|
bool TryPublish(IReadOnlyList<ProjectedValueWrite> values);
|
|
}
|