Class FluentValidationMessageValidator<T>

Assembly: redb.Route.Validation.Adapters.dll

Bridges FluentValidation's
to redb.Route's .

The exchange body is cast to T before validation. A null body or
a body of incompatible type yields a single error result; the supplied severity governs
how reacts.

public sealed class FluentValidationMessageValidator<T> : IMessageValidator

Inheritance

Object→FluentValidationMessageValidator<T>

Implements

Methods

Validate(IExchange)

Validates the exchange and returns a result indicating success or failure with error details.

public ValidationResult Validate(IExchange exchange)

Constructors

FluentValidationMessageValidator(IValidator<T>, ValidationSeverity)

Creates a FluentValidation-backed message validator.