64e3fbe035
v2-ci / build (push) Failing after 1m43s
v2-ci / unit-tests (tests/Core/ZB.MOM.WW.OtOpcUa.Cluster.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.ControlPlane.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Security.Tests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests) (push) Has been skipped
Adds <summary>, <param>, <typeparam>, and <inheritdoc/> tags to public members surfaced by commentchecker — resolves 5,847 of 5,869 issues (99.6%) across three /fixdocs passes.
33 lines
1.5 KiB
C#
33 lines
1.5 KiB
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using ZB.MOM.WW.OtOpcUa.Driver.Historian.Wonderware.Ipc;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.Driver.Historian.Wonderware.Backend
|
|
{
|
|
/// <summary>
|
|
/// The actual aahClientManaged-bound writer. Extracted so unit tests can
|
|
/// substitute a fake without touching the SDK; the production
|
|
/// implementation lives in <see cref="SdkAlarmHistorianWriteBackend"/>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Implementations are responsible for connection management + cluster
|
|
/// failover. The wrapping <see cref="AahClientManagedAlarmEventWriter"/>
|
|
/// handles batch-level orchestration but delegates the per-event SDK call
|
|
/// here so the unit tests can drive every documented MxStatus outcome
|
|
/// without an installed AVEVA Historian.
|
|
/// </remarks>
|
|
public interface IAlarmHistorianWriteBackend
|
|
{
|
|
/// <summary>
|
|
/// Persist the supplied events to the historian. Returns one outcome per
|
|
/// input slot in the same order — must always return an array of the same
|
|
/// length as <paramref name="events"/>.
|
|
/// </summary>
|
|
/// <param name="events">The events to write to the historian.</param>
|
|
/// <param name="cancellationToken">Token to cancel the operation.</param>
|
|
Task<AlarmHistorianWriteOutcome[]> WriteBatchAsync(
|
|
AlarmHistorianEventDto[] events,
|
|
CancellationToken cancellationToken);
|
|
}
|
|
}
|