using ZB.MOM.WW.Secrets.Abstractions;

namespace ZB.MOM.WW.Secrets.DependencyInjection;

/// <summary>
/// The single-node default <see cref="ISecretReplicator"/>: publishing a row is a no-op because
/// there are no peers to broadcast to. The <c>ZB.MOM.WW.Secrets.Replication.Akka</c> and
/// <c>ZB.MOM.WW.Secrets.Replication.SqlServer</c> packages replace this registration with a real
/// replicator for clustered deployments.
/// </summary>
public sealed class NoOpSecretReplicator : ISecretReplicator
{
    /// <inheritdoc />
    public Task PublishAsync(StoredSecret row, CancellationToken ct) => Task.CompletedTask;
}
