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