SboxSuperuser/Engine/Audit/IAuditWriter.cs

An internal interface for audit writers in the SboxSuperuser admin tooling. Declares three async methods that begin, complete and record an AuditAction with a CommandStatus, returning whether the write succeeded and taking a CancellationToken.

namespace SboxSuperuser.Engine.Audit;

internal interface IAuditWriter
{
	Task<bool> BeginAsync( AuditAction action, CancellationToken cancellation );
	Task<bool> CompleteAsync( AuditAction action, CommandStatus outcome, CancellationToken cancellation );
	Task<bool> RecordAsync( AuditAction action, CommandStatus outcome, CancellationToken cancellation );
}