Class ChunkSequenceReader
Creates a ChunkSequence containing all the chunks of the original message.
Implements
Inherited Members
Namespace: Silverback.Messaging.Sequences.Chunking
Assembly: Silverback.Integration.dll
Syntax
public class ChunkSequenceReader : SequenceReaderBase, ISequenceReader
Constructors
| Improve this doc View sourceChunkSequenceReader()
Initializes a new instance of the ChunkSequenceReader class.
Declaration
public ChunkSequenceReader()
Methods
| Improve this doc View sourceCanHandleAsync(ConsumerPipelineContext)
Checks whether this reader can and must handle the message being processed in the specified context.
Declaration
public override Task<bool> CanHandleAsync(ConsumerPipelineContext context)
Parameters
Type | Name | Description |
---|---|---|
ConsumerPipelineContext | context | The current ConsumerPipelineContext. |
Returns
Type | Description |
---|---|
Task<bool> | A Task<TResult> representing the asynchronous operation. The task result contains a value indicating whether this reader can and must handle the message. |
Overrides
| Improve this doc View sourceCreateNewSequenceCore(string, ConsumerPipelineContext)
Creates the new sequence object.
Declaration
protected override ISequence CreateNewSequenceCore(string sequenceId, ConsumerPipelineContext context)
Parameters
Type | Name | Description |
---|---|---|
string | sequenceId | The sequence identifier. |
ConsumerPipelineContext | context | The current ConsumerPipelineContext. |
Returns
Type | Description |
---|---|
ISequence | The new sequence. |
Overrides
| Improve this doc View sourceIsNewSequenceAsync(string, ConsumerPipelineContext)
Determines if the current message correspond with the beginning of a new sequence.
Declaration
protected override Task<bool> IsNewSequenceAsync(string sequenceId, ConsumerPipelineContext context)
Parameters
Type | Name | Description |
---|---|---|
string | sequenceId | The sequence identifier. |
ConsumerPipelineContext | context | The current ConsumerPipelineContext. |
Returns
Type | Description |
---|---|
Task<bool> | A Task<TResult> representing the asynchronous operation. The task result contains
|