using TakeoutSaaS.Application.Identity.Events;

namespace TakeoutSaaS.Application.Identity.Abstractions;

/// <summary>
/// 身份模块操作日志发布器。
/// </summary>
public interface IIdentityOperationLogPublisher
{
    /// <summary>
    /// 发布身份模块操作日志消息。
    /// </summary>
    /// <param name="message">操作日志消息。</param>
    /// <param name="cancellationToken">取消标记。</param>
    /// <returns>异步任务。</returns>
    Task PublishAsync(IdentityUserOperationLogMessage message, CancellationToken cancellationToken = default);
}
