Class CustomHeadersMapperProducerBehavior
- Namespace
- Silverback.Messaging.Headers
- Assembly
- Silverback.Integration.dll
Applies the custom header name mappings.
public class CustomHeadersMapperProducerBehavior : IProducerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
CustomHeadersMapperProducerBehavior
- Implements
- Inherited Members
Constructors
CustomHeadersMapperProducerBehavior(ICustomHeadersMappings?)
Initializes a new instance of the CustomHeadersMapperProducerBehavior class.
public CustomHeadersMapperProducerBehavior(ICustomHeadersMappings? mappings)
Parameters
mappingsICustomHeadersMappingsThe ICustomHeadersMappings containing the mappings to be applied.
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.