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
sequenceIdstringThe identifier that is used to match the consumed messages with their belonging sequence.
contextConsumerPipelineContextThe 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()