Class ValidationOptions
- Namespace
- Excalibur.Dispatch.Options.Middleware
- Assembly
- Excalibur.Dispatch.dll
Configuration options for validation middleware.
public sealed class ValidationOptions
- Inheritance
-
ValidationOptions
- Inherited Members
- Extension Methods
Properties
BypassValidationForTypes
Gets or sets message types that bypass validation.
public string[]? BypassValidationForTypes { get; set; }
Property Value
- string[]
The current BypassValidationForTypes value.
Enabled
Gets or sets a value indicating whether validation is enabled.
public bool Enabled { get; set; }
Property Value
- bool
Default is true.
StopOnFirstError
Gets or sets a value indicating whether to stop validation on the first error.
public bool StopOnFirstError { get; set; }
Property Value
- bool
Default is false (collect all errors).
UseCustomValidation
Gets or sets a value indicating whether to use custom validation via IMessageValidationService.
public bool UseCustomValidation { get; set; }
Property Value
- bool
Default is true.
UseDataAnnotations
Gets or sets a value indicating whether to use Data Annotations for validation.
public bool UseDataAnnotations { get; set; }
Property Value
- bool
Default is true.