Interface IOutboxStoreBatch
Provides batch and transactional operations for outbox stores. Implementations that support efficient batch operations should implement this interface alongside IOutboxStore.
public interface IOutboxStoreBatch
- Extension Methods
Methods
MarkBatchFailedAsync(IReadOnlyList<string>, string, int, CancellationToken)
Marks a batch of messages as failed.
ValueTask MarkBatchFailedAsync(IReadOnlyList<string> messageIds, string reason, int retryCount, CancellationToken cancellationToken)
Parameters
messageIdsIReadOnlyList<string>reasonstringretryCountintcancellationTokenCancellationToken
Returns
MarkBatchSentAsync(IReadOnlyList<string>, CancellationToken)
Marks a batch of messages as successfully sent.
ValueTask MarkBatchSentAsync(IReadOnlyList<string> messageIds, CancellationToken cancellationToken)
Parameters
messageIdsIReadOnlyList<string>cancellationTokenCancellationToken
Returns
TryMarkSentAndReceivedAsync(string, InboxEntry, CancellationToken)
Atomically marks message as sent and creates the inbox entry in one transaction, so a redelivery is skipped rather than reprocessed (effectively-once processing; delivery remains at-least-once).
ValueTask<bool> TryMarkSentAndReceivedAsync(string messageId, InboxEntry inboxEntry, CancellationToken cancellationToken)
Parameters
messageIdstringinboxEntryInboxEntrycancellationTokenCancellationToken