Table of Contents

Class BatchSequence

Namespace
Silverback.Messaging.Sequences.Batch
Assembly
Silverback.Integration.dll

Represent an arbitrary sequence of messages created to consume unrelated messages in batch (see BatchSettings).

public class BatchSequence : Sequence, ISequence, IDisposable
Inheritance
BatchSequence
Implements
Inherited Members

Constructors

BatchSequence(string, ConsumerPipelineContext)

Initializes a new instance of the BatchSequence class.

public BatchSequence(string sequenceId, ConsumerPipelineContext context)

Parameters

sequenceId string

The identifier that is used to match the consumed messages with their belonging sequence.

context ConsumerPipelineContext

The current ConsumerPipelineContext, assuming that it will be the one from which the sequence gets published via the message bus.

Methods

OnTimeoutElapsedAsync()

Called when the timeout is elapsed. In this special case the sequence is completed instead of aborted.

protected override Task OnTimeoutElapsedAsync()

Returns

Task

A Task representing the asynchronous operation.