Path: redb-route/redb.Route/Abstractions/INormalizerDefinition.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Abstractions/INormalizerDefinition.cs ---- using System; namespace redb.Route.Abstractions; /// /// Fluent builder for configuring a Normalizer step. /// Maps different input formats to a single canonical form using predicate-based routing. /// public interface INormalizerDefinition { /// When the predicate matches, apply the transform to normalize the body. /// Condition to evaluate against the exchange. /// Transform function producing the normalized body. INormalizerDefinition When( Func predicate, Func transform); /// When the content type matches, apply the transform to normalize the body. /// Expected content type value. /// Transform function producing the normalized body. INormalizerDefinition WhenContentType( string contentType, Func transform); /// Default transform when no predicate matches. /// Fallback transform function. INormalizerDefinition Otherwise(Func transform); }