using System.Data.Common;

namespace KArtSell.BuildingBlocks.Reliability;

public interface IInboxStore
{
    Task<bool> TryBeginAsync(
        DbConnection connection,
        DbTransaction transaction,
        string consumer,
        Guid messageId,
        string payloadHash,
        DateTimeOffset receivedAt,
        CancellationToken cancellationToken);
}
