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