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