feat(cli): historyread --page-size/--pause-after-page/--abandon/--release and --at-time
Hand-paged raw reads in one session print each page's status and continuation (a refused resume is printed, not thrown), can hold the session across a failover (resume when a file appears, then one fresh read), abandon a point to the session close or release it explicitly. --at-time reads AtTime and prints value types. Backed by IOpcUaClientService.HistoryReadPageAsync (default-throwing interface member so existing fakes compile). Used by the gRPC data H3 live gate on projected nodes.
This commit is contained in:
@@ -258,6 +258,20 @@ public interface IOpcUaClientService : IDisposable
|
||||
Task<IReadOnlyList<DataValue>> HistoryReadAggregateAsync(NodeId nodeId, DateTime startTime, DateTime endTime,
|
||||
AggregateType aggregate, double intervalMs = 3600000, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// Reads (or, with <paramref name="release"/>, releases) ONE HistoryRead page for one node and returns the server's
|
||||
/// status, values and continuation point verbatim — for callers that page by hand and must see each page's status
|
||||
/// (a <c>BadContinuationPointInvalid</c> resume, a refusal) instead of an exception.
|
||||
/// </summary>
|
||||
/// <param name="details">Raw, Processed or AtTime details.</param>
|
||||
/// <param name="nodeId">The node.</param>
|
||||
/// <param name="continuationPoint">The point to resume (or release); null = a fresh read.</param>
|
||||
/// <param name="release">Send <c>releaseContinuationPoints = true</c>.</param>
|
||||
/// <param name="ct">Cancellation.</param>
|
||||
/// <returns>The page.</returns>
|
||||
Task<HistoryPage> HistoryReadPageAsync(HistoryReadDetails details, NodeId nodeId, byte[]? continuationPoint = null, bool release = false,
|
||||
CancellationToken ct = default) => throw new NotSupportedException();
|
||||
|
||||
/// <summary>
|
||||
/// Reads redundancy status data such as redundancy mode, service level, and partner endpoint URIs.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user