Code/SboxSuperuser/Engine/Audit/IAuditWriter.cs

Interface for an audit writer in the SboxSuperuser engine layer. Declares three async methods to begin, complete and record an AuditAction with a CommandStatus, each taking a CancellationToken and returning a success bool.

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 );
}