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