Class NormalizerDefinition
Definition for a Normalizer step. Collects when-clauses and builds a
with transform branches at route-build time.
public sealed class NormalizerDefinition : ProcessorDefinition, IProcessorDefinition, INormalizerDefinition
Inheritance
Implements
Inherited Members
Methods
CreateProcessor(IRouteContext)
Compile this node into a runtime processor.
public override IProcessor CreateProcessor(IRouteContext context)
Otherwise(Func<IExchange, object?>)
Default transform when no predicate matches.
public INormalizerDefinition Otherwise(Func<IExchange, object?> transform)
When(Func<IExchange, bool>, Func<IExchange, object?>)
When the predicate matches, apply the transform to normalize the body.
public INormalizerDefinition When(Func<IExchange, bool> predicate, Func<IExchange, object?> transform)
WhenContentType(string, Func<IExchange, object?>)
When the content type matches, apply the transform to normalize the body.
public INormalizerDefinition WhenContentType(string contentType, Func<IExchange, object?> transform)