Table of Contents

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

value object

The value to sanitize.

propertyName string

The name of the property being sanitized.

messageType Type

The type of the message containing the property.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<object>

The sanitized value.