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
| Improve this doc View sourceBatchSequence(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 to the internal bus. |
Methods
| Improve this doc View sourceOnTimeoutElapsedAsync()
Called when the timout is elapsed. In this special case the sequence is completed instead of aborted.
Declaration
protected override Task OnTimeoutElapsedAsync()
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |