Skip to content

Vitreous.FluentValidation.Behaviors namespace

StreamValidationBehavior<TMessage, TResult>

Stream pipeline behavior that runs every registered IValidator<T> for a stream query before the stream is opened. When validation fails the handler is not called, and CreateStream returns Validation with the failures grouped by property name.

ValidationBehavior<TMessage, TResult>

Pipeline behavior that runs every registered IValidator<T> for a command or query before its handler. When validation fails the handler is not called, and the dispatch returns Validation with the failures grouped by property name.