Interface ITransactional
Declares the CommitAsync
and RollbackAsync
methods, allowing the service to be enlisted
into the consumer transaction (see ConsumerTransactionManager).
Namespace: Silverback.Messaging.Inbound.Transaction
Assembly: Silverback.Integration.dll
Syntax
public interface ITransactional
Methods
| Improve this doc View sourceCommitAsync()
Called when the message has been successfully processed to commit the transaction.
Declaration
Task CommitAsync()
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
RollbackAsync()
Called when an exception occurs during the message processing to rollback the transaction.
Declaration
Task RollbackAsync()
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |