Interface ISequenceReader
- Namespace
- Silverback.Messaging.Sequences
- Assembly
- Silverback.Integration.dll
Can recognize a message that belongs to a sequence and match it with the proper ISequence instance.
public interface ISequenceReader
Properties
HandlesRawMessages
Gets a value indicating whether this reader handles the raw messages, before they are being deserialized, decrypted, etc.
bool HandlesRawMessages { get; }
Property Value
Methods
CanHandleAsync(ConsumerPipelineContext)
Checks whether this reader can and must handle the message being processed in the specified context.
ValueTask<bool> CanHandleAsync(ConsumerPipelineContext context)
Parameters
contextConsumerPipelineContextThe current ConsumerPipelineContext.
Returns
- ValueTask<bool>
A Task<TResult> representing the asynchronous operation. The task result contains a value indicating whether this reader can and must handle the message.
GetSequenceAsync(ConsumerPipelineContext)
Returns the ISequence related to the message being processed.
ValueTask<ISequence> GetSequenceAsync(ConsumerPipelineContext context)
Parameters
contextConsumerPipelineContextThe current ConsumerPipelineContext.
Returns
- ValueTask<ISequence>
A Task<TResult> representing the asynchronous operation. The task result contains the ISequence.