Class BinaryMessageHandlerProducerBehavior
- Namespace
- Silverback.Messaging.BinaryMessages
- Assembly
- Silverback.Integration.dll
Switches to the BinaryMessageSerializer if the message being produced implements the IBinaryMessage interface.
public class BinaryMessageHandlerProducerBehavior : IProducerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
BinaryMessageHandlerProducerBehavior
- Implements
- Inherited Members
Constructors
BinaryMessageHandlerProducerBehavior()
public BinaryMessageHandlerProducerBehavior()
Properties
SortIndex
Gets the sort index.
public int SortIndex { get; }
Property Value
Methods
HandleAsync(ProducerPipelineContext, ProducerBehaviorHandler, CancellationToken)
Process, handles or transforms the message being produced.
public ValueTask HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next, CancellationToken cancellationToken)
Parameters
contextProducerPipelineContextThe context that is passed along the behaviors pipeline.
nextProducerBehaviorHandlerThe next behavior in the pipeline.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.