Interface ITransactionalConsumer
Represents a consumer that supports transactional commands (Commit/Rollback).
Namespace: CodersRealm.NmsAmqpClient
Assembly: CodersRealm.NmsAmqpClient.dll
Syntax
public interface ITransactionalConsumer
Methods
CommitAsync()
Commit the current transaction on the consumer's session.
Declaration
Task CommitAsync()
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown when the commit fails. |
RollbackAsync()
Rollback the current transaction on the consumer's session.
Declaration
Task RollbackAsync()
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown when the rollback fails. |