Class ValidatorConsumerBehavior
- Namespace
- Silverback.Messaging.Validation
- Assembly
- Silverback.Integration.dll
Validates the consumed message.
public class ValidatorConsumerBehavior : IConsumerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
ValidatorConsumerBehavior
- Implements
- Inherited Members
Constructors
ValidatorConsumerBehavior(ISilverbackLogger<ValidatorConsumerBehavior>)
Initializes a new instance of the ValidatorConsumerBehavior class.
public ValidatorConsumerBehavior(ISilverbackLogger<ValidatorConsumerBehavior> logger)
Parameters
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.