test: validate grpc data connections with local docker and opcua cli

This commit is contained in:
Joseph Doherty
2026-11-17 22:01:26 -05:00
parent 1df29a3124
commit 29fec57fac
194 changed files with 23327 additions and 740 deletions
@@ -42,6 +42,20 @@ public interface IOpcUaClientService : IDisposable
/// <returns>The current data value of the node.</returns>
Task<DataValue> ReadValueAsync(NodeId nodeId, CancellationToken ct = default);
/// <summary>Reads a value allowing a cached value up to the specified age.</summary>
/// <param name="nodeId">The node whose value should be retrieved.</param>
/// <param name="maximumAge">Maximum cache age, from zero to Int32.MaxValue milliseconds.</param>
/// <param name="ct">The cancellation token that aborts the read request.</param>
/// <returns>The data value returned by the server.</returns>
Task<DataValue> ReadValueAsync(NodeId nodeId, TimeSpan maximumAge, CancellationToken ct = default)
{
if (maximumAge < TimeSpan.Zero || maximumAge.TotalMilliseconds > int.MaxValue)
throw new ArgumentOutOfRangeException(nameof(maximumAge));
if (maximumAge != TimeSpan.Zero)
throw new NotSupportedException("This client does not support reads with a maximum age.");
return ReadValueAsync(nodeId, ct);
}
/// <summary>
/// Writes an operator-supplied value to an OPC UA node after applying client-side type conversion when needed.
/// </summary>