Class BatchSequence
Represent an arbitrary sequence of messages created to consume unrelated messages in batch (see BatchSettings).
Inherited Members
Namespace: Silverback.Messaging.Sequences.Batch
Assembly: Silverback.Integration.dll
Syntax
public class BatchSequence : Sequence, ISequence, IDisposable
Constructors
BatchSequence(string, ConsumerPipelineContext)
Initializes a new instance of the BatchSequence class.
Declaration
public BatchSequence(string sequenceId, ConsumerPipelineContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sequenceId | The identifier that is used to match the consumed messages with their belonging sequence. |
| ConsumerPipelineContext | context | 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.
Declaration
protected override ValueTask OnTimeoutElapsedAsync()
Returns
| Type | Description |
|---|---|
| ValueTask | A Task representing the asynchronous operation. |