Table of Contents

Class TransactionHandlerConsumerBehavior

Namespace
Silverback.Messaging.Consuming.Transaction
Assembly
Silverback.Integration.dll

Handles the consumer transaction and applies the error policies.

public class TransactionHandlerConsumerBehavior : IConsumerBehavior, IBrokerBehavior, ISorted
Inheritance
TransactionHandlerConsumerBehavior
Implements
Inherited Members

Constructors

TransactionHandlerConsumerBehavior(ISilverbackLogger<TransactionHandlerConsumerBehavior>)

Initializes a new instance of the TransactionHandlerConsumerBehavior class.

public TransactionHandlerConsumerBehavior(ISilverbackLogger<TransactionHandlerConsumerBehavior> logger)

Parameters

logger ISilverbackLogger<TransactionHandlerConsumerBehavior>

The ISilverbackLogger<TCategoryName>.

Properties

SortIndex

Gets the sort index.

public int SortIndex { get; }

Property Value

int

Methods

HandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler, CancellationToken)

Process, handles or transforms the message being consumed.

public ValueTask HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next, CancellationToken cancellationToken)

Parameters

context ConsumerPipelineContext

The context that is passed along the behaviors pipeline.

next ConsumerBehaviorHandler

The next behavior in the pipeline.

cancellationToken CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

ValueTask

A ValueTask representing the asynchronous operation.