Files
scadaproj/ZB.MOM.WW.Secrets/src/ZB.MOM.WW.Secrets.Abstractions/ISecretReplicator.cs
T
2026-07-15 16:30:19 -04:00

18 lines
731 B
C#

namespace ZB.MOM.WW.Secrets.Abstractions;
/// <summary>
/// Publishes an encrypted row to cluster peers. Core registers a no-op implementation;
/// <c>ZB.MOM.WW.Secrets.Akka</c> (deferred) provides the real cluster implementation.
/// </summary>
public interface ISecretReplicator
{
/// <summary>
/// Broadcasts the already-encrypted <paramref name="row"/> to peer nodes. This is a no-op
/// in single-node deployments.
/// </summary>
/// <param name="row">The encrypted row to replicate.</param>
/// <param name="ct">A token to cancel the operation.</param>
/// <returns>A task that completes when the row has been published.</returns>
Task PublishAsync(StoredSecret row, CancellationToken ct);
}