namespace ZB.MOM.WW.MxGateway.Server.Security.Authentication; /// /// Stores and retrieves audit events for API key operations. /// public interface IApiKeyAuditStore { /// /// Appends an audit entry to the audit log. /// /// Audit entry to record. /// Token to cancel the asynchronous operation. /// Asynchronous task representing the append operation. Task AppendAsync(ApiKeyAuditEntry entry, CancellationToken cancellationToken); /// /// Lists the most recent audit entries, up to the specified count. /// /// Maximum number of entries to return. /// Token to cancel the asynchronous operation. /// Asynchronous task returning the list of audit records. Task> ListRecentAsync(int count, CancellationToken cancellationToken); }