Class KafkaMessageKeyInitializerProducerBehavior
- Namespace
- Silverback.Messaging.Producing
- Assembly
- Silverback.Integration.Kafka.dll
Sets the Kafka key with the value from the properties decorated with the KafkaKeyMemberAttribute.
public class KafkaMessageKeyInitializerProducerBehavior : IProducerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
KafkaMessageKeyInitializerProducerBehavior
- Implements
- Inherited Members
Constructors
KafkaMessageKeyInitializerProducerBehavior()
public KafkaMessageKeyInitializerProducerBehavior()
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.