Class HeadersWriterProducerBehavior
- Namespace
- Silverback.Messaging.Headers
- Assembly
- Silverback.Integration.dll
Maps the properties decorated with the HeaderAttribute to the message headers.
public class HeadersWriterProducerBehavior : IProducerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
HeadersWriterProducerBehavior
- Implements
- Inherited Members
Constructors
HeadersWriterProducerBehavior()
public HeadersWriterProducerBehavior()
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.