Interface ISanitizationService
- Namespace
- Excalibur.Dispatch.Middleware.Validation
- Assembly
- Excalibur.Dispatch.dll
Service interface for custom input sanitization logic.
public interface ISanitizationService
- Extension Methods
Methods
SanitizeValueAsync(object?, string, Type, CancellationToken)
Sanitizes a value based on custom rules.
Task<object?> SanitizeValueAsync(object? value, string propertyName, Type messageType, CancellationToken cancellationToken)
Parameters
valueobjectThe value to sanitize.
propertyNamestringThe name of the property being sanitized.
messageTypeTypeThe type of the message containing the property.
cancellationTokenCancellationTokenCancellation token.