Class InputSanitizationOptions
- Namespace
- Excalibur.Dispatch.Options.Middleware
- Assembly
- Excalibur.Dispatch.dll
Configuration options for input sanitization middleware.
public sealed class InputSanitizationOptions
- Inheritance
-
InputSanitizationOptions
- Inherited Members
- Extension Methods
Properties
BypassSanitizationForTypes
Gets or sets message types that bypass sanitization.
public string[]? BypassSanitizationForTypes { get; set; }
Property Value
- string[]
The current BypassSanitizationForTypes value.
Enabled
Gets or sets a value indicating whether input sanitization is enabled.
public bool Enabled { get; set; }
Property Value
- bool
Default is true.
ExcludeProperties
Gets or sets property names to exclude from sanitization.
public string[]? ExcludeProperties { get; set; }
Property Value
- string[]
The current ExcludeProperties value.
Features
Gets or sets the sanitization feature toggles.
public SanitizationFeatures Features { get; set; }
Property Value
- SanitizationFeatures
A SanitizationFeatures instance with all features enabled by default.
MaxStringLength
Gets or sets the maximum allowed string length.
[Range(0, 2147483647)]
public int MaxStringLength { get; set; }
Property Value
- int
Default is 0 (no limit).
SanitizeContextItems
Gets or sets a value indicating whether to sanitize context items.
public bool SanitizeContextItems { get; set; }
Property Value
- bool
Default is true.
ThrowOnSanitizationError
Gets or sets a value indicating whether to throw exception on sanitization error.
public bool ThrowOnSanitizationError { get; set; }
Property Value
- bool
Default is false.
UseCustomSanitization
Gets or sets a value indicating whether to use custom sanitization service.
public bool UseCustomSanitization { get; set; }
Property Value
- bool
Default is true.