Show / Hide Table of Contents

    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 source

    CommitAsync()

    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.

    | Improve this doc View source

    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.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini