Interface IOutboxWriter
- Namespace
- Silverback.Messaging.Producing.TransactionalOutbox
- Assembly
- Silverback.Integration.dll
Exposes the methods to write to the outbox.
public interface IOutboxWriter
Remarks
Used by the OutboxProduceStrategy.
Methods
AddAsync(OutboxMessage, ISilverbackContext?, CancellationToken)
Adds the message contained in the specified envelope to the outbox.
Task AddAsync(OutboxMessage outboxMessage, ISilverbackContext? context = null, CancellationToken cancellationToken = default)
Parameters
outboxMessageOutboxMessageThe message to be stored in the outbox.
contextISilverbackContextThe ISilverbackContext in the current scope.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.
Returns
AddAsync(IAsyncEnumerable<OutboxMessage>, ISilverbackContext?, CancellationToken)
Adds the message contained in the specified envelope to the outbox.
Task AddAsync(IAsyncEnumerable<OutboxMessage> outboxMessages, ISilverbackContext? context = null, CancellationToken cancellationToken = default)
Parameters
outboxMessagesIAsyncEnumerable<OutboxMessage>The messages to be stored in the outbox.
contextISilverbackContextThe ISilverbackContext in the current scope.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.
Returns
AddAsync(IEnumerable<OutboxMessage>, ISilverbackContext?, CancellationToken)
Adds the message contained in the specified envelope to the outbox.
Task AddAsync(IEnumerable<OutboxMessage> outboxMessages, ISilverbackContext? context = null, CancellationToken cancellationToken = default)
Parameters
outboxMessagesIEnumerable<OutboxMessage>The messages to be stored in the outbox.
contextISilverbackContextThe ISilverbackContext in the current scope.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.