Class BinaryMessageHandlerConsumerBehavior
- Namespace
- Silverback.Messaging.BinaryMessages
- Assembly
- Silverback.Integration.dll
Switches to the BinaryMessageSerializer if the message being consumed is a binary message (according to the x-message-type header).
public class BinaryMessageHandlerConsumerBehavior : IConsumerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
BinaryMessageHandlerConsumerBehavior
- Implements
- Inherited Members
Constructors
BinaryMessageHandlerConsumerBehavior()
public BinaryMessageHandlerConsumerBehavior()
Properties
SortIndex
Gets the sort index.
public int SortIndex { get; }
Property Value
Methods
HandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler, CancellationToken)
Process, handles or transforms the message being consumed.
public ValueTask HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next, CancellationToken cancellationToken)
Parameters
contextConsumerPipelineContextThe context that is passed along the behaviors pipeline.
nextConsumerBehaviorHandlerThe next behavior in the pipeline.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.