Table of Contents

Interface IValidate

Namespace
Trellis.Mediator
Assembly
Trellis.Mediator.dll

Marker interface for commands/queries that can self-validate before reaching the handler. Implement on command/query records to enable the ValidationBehavior<TMessage, TResponse>.

public interface IValidate
Extension Methods

Methods

Validate()

Validates this message and returns a result indicating success or validation failure. Returning a failure short-circuits the pipeline — the handler is never called.

IResult Validate()

Returns

IResult