Class RouteDefinitionBase<TSelf>
Generic CRTP base for every route / scope definition. All leaf-DSL methods are declared here
exactly once and return TSelf for fluent chaining inside the concrete
scope. The class implements ; covariant return types let the
typed leaf-DSL satisfy the interface contract whose declared return type is
.
Apache Camel parity: this mirrors ProcessorDefinition<Type extends ProcessorDefinition<Type>>
from camel-core-model. Scope-opener methods (Filter, Choice, Split, ...)
return concrete scope types; child are populated
via the inherited typed DSL.
public abstract class RouteDefinitionBase<TSelf> : ProcessorDefinition, IRouteDefinition, IProcessorDefinition where TSelf : RouteDefinitionBase<TSelf>
Inheritance
Implements
Inherited Members
Properties
Context
Route context captured during compile (null until the route is added to a context).
public IRouteContext? Context { get; }
IsTransacted
True when this route's compiled pipeline opens an explicit declarative
public bool IsTransacted { get; }
Self
Typed self-reference for fluent chaining; safe because TSelf is constrained to this class.
protected TSelf Self { get; }
ShowRouteIdValue
Flag controlling whether the route id is shown in log/telemetry output (default false).
public bool ShowRouteIdValue { get; }
Methods
AddAttachment(string, IExpression, IExpression, string?)
As with the file name evaluated per message.
public TSelf AddAttachment(string name, IExpression content, IExpression fileName, string? contentType = null)
AddAttachment(string, IExpression, string?, string?)
Adds an attachment to the message with the value of content (byte[], string as
public TSelf AddAttachment(string name, IExpression content, string? fileName = null, string? contentType = null)
AddAttachmentFromBody(string, IExpression, string?)
As with the file name evaluated per message.
public TSelf AddAttachmentFromBody(string name, IExpression fileName, string? contentType = null)
AddAttachmentFromBody(string, string?, string?)
Adds the message body as an attachment; the body stays. The content type defaults to the message's. The text
public TSelf AddAttachmentFromBody(string name, string? fileName = null, string? contentType = null)
AddAttachmentFromFile(IExpression, string?, string?)
As with the path evaluated per message.
public TSelf AddAttachmentFromFile(IExpression path, string? name = null, string? contentType = null)
AddAttachmentFromFile(string, string?, string?)
Adds the file at path as an attachment, read from disk whenever it is sent; the name and file
public TSelf AddAttachmentFromFile(string path, string? name = null, string? contentType = null)
Aggregate(Func<IExchange, string>, Func<IExchange, IExchange, IExchange>, Func<IExchange, bool>)
Opens an Aggregate scope. Collects exchanges by correlation key and forwards completed
public AggregateDefinition Aggregate(Func<IExchange, string> correlationKey, Func<IExchange, IExchange, IExchange> aggregationStrategy, Func<IExchange, bool> completionPredicate)
Aggregate(IExpression, Func<IExchange, IExchange, IExchange>, Func<IExchange, bool>)
Opens an Aggregate scope whose correlation key comes from an expression, e.g.
public AggregateDefinition Aggregate(IExpression correlationKey, Func<IExchange, IExchange, IExchange> aggregationStrategy, Func<IExchange, bool> completionPredicate)
AutoStart(bool)
public TSelf AutoStart(bool value = true)
Bean(string, string?)
Apache Camel's bean(ref, method): calls user code through the bean: component, as the step
public TSelf Bean(string reference, string? method = null)
Bean<TService>(Action<TService, IExchange>)
public TSelf Bean<TService>(Action<TService, IExchange> method)
Bean<TService>(Func<TService, IExchange, CancellationToken, Task>)
public TSelf Bean<TService>(Func<TService, IExchange, CancellationToken, Task> method)
Bean<TService>(Func<TService, IExchange, Task>)
public TSelf Bean<TService>(Func<TService, IExchange, Task> method)
BeginTransaction()
public TSelf BeginTransaction()
BeginTransaction(TransactionPolicy)
public TSelf BeginTransaction(TransactionPolicy policy)
CircuitBreaker()
Opens a CircuitBreaker scope. Configure options before adding downstream steps.
public CircuitBreakerDefinition CircuitBreaker()
ClaimCheck(ClaimCheckOperation, string?, TimeSpan?, string?)
public TSelf ClaimCheck(ClaimCheckOperation operation, string? key = null, TimeSpan? ttl = null, string? repositoryName = null)
ClaimCheck(IClaimCheckRepository, ClaimCheckOperation, string?, TimeSpan?)
public TSelf ClaimCheck(IClaimCheckRepository repository, ClaimCheckOperation operation, string? key = null, TimeSpan? ttl = null)
Cluster(bool)
public TSelf Cluster(bool value = true)
CommitTransaction()
public TSelf CommitTransaction()
ControlBus(ControlBusAction, string, bool)
Apache Camel controlbus: parity: manage a route at runtime by sending a control message.
public TSelf ControlBus(ControlBusAction action, string routeId, bool async = false)
ConvertBody(Type)
Apache Camel parity: convert the exchange body to targetType.
public TSelf ConvertBody(Type targetType)
Debounce(Func<IExchange, string>, TimeSpan)
Opens a Debounce scope. Suppresses rapid-fire messages per key, forwarding only the last
public DebounceDefinition Debounce(Func<IExchange, string> keyExtractor, TimeSpan quietPeriod)
Delay(Func<IExchange, TimeSpan>)
public TSelf Delay(Func<IExchange, TimeSpan> factory)
Delay(string)
public TSelf Delay(string durationExpression)
Delay(TimeSpan)
public TSelf Delay(TimeSpan duration)
Description(string)
public TSelf Description(string description)
DynamicRouter(Func<IExchange, string?>)
Apache Camel parity: iteratively route to URIs returned by a routing function.
public TSelf DynamicRouter(Func<IExchange, string?> routingFunction)
DynamicRouter(IExpression)
public TSelf DynamicRouter(IExpression routingExpression)
Enrich(Func<IExchange, string>, Func<IExchange, IExchange, IExchange>)
public TSelf Enrich(Func<IExchange, string> uriFactory, Func<IExchange, IExchange, IExchange> mergeStrategy)
Enrich(Func<IExchange, string>)
public TSelf Enrich(Func<IExchange, string> uriFactory)
Enrich(IExpression, Func<IExchange, IExchange, IExchange>)
public TSelf Enrich(IExpression uri, Func<IExchange, IExchange, IExchange> mergeStrategy)
Enrich(IExpression)
public TSelf Enrich(IExpression uri)
Enrich(string, Func<IExchange, IExchange, IExchange>)
public TSelf Enrich(string resourceUri, Func<IExchange, IExchange, IExchange> mergeStrategy)
Enrich(string)
public TSelf Enrich(string resourceUri)
ExceptionHandled()
public TSelf ExceptionHandled()
Filter(Func<IExchange, bool>)
Opens a Filter scope. Only exchanges matching the predicate will be processed by steps
public FilterDefinition Filter(Func<IExchange, bool> predicate)
Filter(IExpression)
Opens a Filter scope using an predicate.
public FilterDefinition Filter(IExpression expression)
Filter(IPredicate)
Opens a Filter scope guarded by an . The predicate is stored as the
public FilterDefinition Filter(IPredicate predicate)
From(string)
public TSelf From(string uri)
GetMessageHistory()
Gets the route-level message-history override (null = inherit the global setting).
public bool? GetMessageHistory()
GetProcessingTimeout()
Gets the per-route processing timeout, or null if not set.
public TimeSpan? GetProcessingTimeout()
GetRoutePolicy()
Gets the explicitly set route policy, or null if not set.
public IRoutePolicy? GetRoutePolicy()
GetTracing()
Gets the route-level tracing override (null = inherit the global setting).
public bool? GetTracing()
Id(string)
public TSelf Id(string id)
IdempotentConsumer(Func<IExchange, string>, string, bool)
Apache Camel parity overload that looks up the repository by registered name from the
public IdempotentConsumerDefinition IdempotentConsumer(Func<IExchange, string> keyExtractor, string repositoryName, bool skipDuplicate = true)
IdempotentConsumer(IExpression, string, bool)
Apache Camel parity overload that looks up the repository by registered name from the
public IdempotentConsumerDefinition IdempotentConsumer(IExpression messageId, string repositoryName, bool skipDuplicate = true)
IdempotentConsumer(IIdempotentRepository, Func<IExchange, string>, bool)
Opens an Idempotent Consumer scope. Duplicate exchanges (same key) are skipped.
public IdempotentConsumerDefinition IdempotentConsumer(IIdempotentRepository repository, Func<IExchange, string> keyExtractor, bool skipDuplicate = true)
IdempotentConsumer(IIdempotentRepository, IExpression, bool)
Idempotent Consumer whose message id comes from an expression, e.g. IdempotentConsumer(repo, jpath("$.messageId")).
public IdempotentConsumerDefinition IdempotentConsumer(IIdempotentRepository repository, IExpression messageId, bool skipDuplicate = true)
Intercept()
Opens steps that run before every step of this route, including steps nested in scopes (Camel intercept()). Close with EndIntercept().
public InterceptDefinition Intercept()
InterceptFrom(string?)
Opens steps that run once when a message enters the route, optionally only for a From URI matching the mask (Camel interceptFrom()).
public InterceptDefinition InterceptFrom(string? uriPattern = null)
InterceptSendToEndpoint(string)
Opens steps that run before a To / ToD whose target matches the mask; .SkipSendToOriginalEndpoint() replaces the send (Camel interceptSendToEndpoint()...
public InterceptDefinition InterceptSendToEndpoint(string uriPattern)
LoadBalance(Action<ILoadBalancerDefinition>)
public TSelf LoadBalance(Action<ILoadBalancerDefinition> configure)
LoadBalance(ILoadBalancerStrategy, params string[])
public TSelf LoadBalance(ILoadBalancerStrategy strategy, params string[] uris)
Log(Func<IExchange, string>, LogLevel)
public TSelf Log(Func<IExchange, string> messageFactory, LogLevel level = LogLevel.Information)
Log(LogLevel)
Opens a rich-log scope at the given level.
public RichLogScopeDefinition Log(LogLevel level)
Log(string, LogLevel)
public TSelf Log(string message, LogLevel level = LogLevel.Information)
Loop(Func<IExchange, bool>, bool, bool)
Opens a Loop scope that repeats the body pipeline while condition holds.
public LoopDefinition Loop(Func<IExchange, bool> condition, bool copy = false, bool shareScope = true)
Loop(Func<IExchange, int>, bool, bool)
Opens a Loop scope that repeats the body pipeline a number of times resolved from the exchange at runtime.
public LoopDefinition Loop(Func<IExchange, int> countFactory, bool copy = false, bool shareScope = true)
Loop(int, bool, bool)
Opens a Loop scope that repeats the body pipeline count times.
public LoopDefinition Loop(int count, bool copy = false, bool shareScope = true)
Loop(IPredicate, bool, bool)
Opens a Loop scope that repeats while an holds; the predicate is
public LoopDefinition Loop(IPredicate condition, bool copy = false, bool shareScope = true)
Loop(string, bool, bool)
Loop whose iteration count is a route-language expression evaluated per message ("${header.count}", "header.items.Count"); for a condition use LoopWhi...
public LoopDefinition Loop(string countExpression, bool copy = false, bool shareScope = true)
Marshal(IMessageSerializer)
public TSelf Marshal(IMessageSerializer serializer)
Marshal(string)
public TSelf Marshal(string contentType)
Marshal(Type)
public TSelf Marshal(Type serializerType)
Marshal<TSerializer>()
public TSelf Marshal<TSerializer>() where TSerializer : class
MessageHistory(bool)
public TSelf MessageHistory(bool value = true)
Metered(string, Action<IExchange>)
public TSelf Metered(string stepName, Action<IExchange> action)
Metered(string, Func<IExchange, CancellationToken, Task>)
public TSelf Metered(string stepName, Func<IExchange, CancellationToken, Task> action)
Metered(string, IProcessor)
public TSelf Metered(string stepName, IProcessor processor)
Metered(string)
Opens a metrics scope. All child steps are measured by MeteredStepProcessor
public MeteredDefinition Metered(string stepName)
Multicast()
Opens a Multicast scope (fan-out). Add targets with .To() / .Process().
public MulticastDefinition Multicast()
Normalize(Action<INormalizerDefinition>)
public TSelf Normalize(Action<INormalizerDefinition> configure)
OfType<T>()
Apache Camel parity: open a typed scope. Auto-converts the body to T
public OfTypeDefinition<T> OfType<T>()
OnCompletion()
Opens steps that run after the route finished with an exchange, on a copy, outside the route's transaction (Camel onCompletion()). Close with EndOnCom...
public OnCompletionDefinition OnCompletion()
OnException(params Type[])
Opens an OnException scope for multiple exception types.
public OnExceptionDefinition OnException(params Type[] exceptionTypes)
OnException<TException>()
Opens an OnException scope for TException.
public OnExceptionDefinition OnException<TException>() where TException : Exception
PollEnrich(Func<IExchange, string>, Func<IExchange, IExchange?, IExchange>, TimeSpan?)
public TSelf PollEnrich(Func<IExchange, string> uriFactory, Func<IExchange, IExchange?, IExchange> mergeStrategy, TimeSpan? timeout = null)
PollEnrich(Func<IExchange, string>, TimeSpan?)
public TSelf PollEnrich(Func<IExchange, string> uriFactory, TimeSpan? timeout = null)
PollEnrich(IExpression, Func<IExchange, IExchange?, IExchange>, TimeSpan?)
public TSelf PollEnrich(IExpression uri, Func<IExchange, IExchange?, IExchange> mergeStrategy, TimeSpan? timeout = null)
PollEnrich(IExpression, TimeSpan?)
public TSelf PollEnrich(IExpression uri, TimeSpan? timeout = null)
PollEnrich(string, Func<IExchange, IExchange?, IExchange>, TimeSpan?)
Apache Camel parity: poll an external endpoint and merge the polled result.
public TSelf PollEnrich(string resourceUri, Func<IExchange, IExchange?, IExchange> mergeStrategy, TimeSpan? timeout = null)
PollEnrich(string, TimeSpan?)
public TSelf PollEnrich(string resourceUri, TimeSpan? timeout = null)
Process(Action<IExchange>)
public TSelf Process(Action<IExchange> action)
Process(Func<IExchange, CancellationToken, Task>)
public TSelf Process(Func<IExchange, CancellationToken, Task> action)
Process(IProcessor)
public TSelf Process(IProcessor processor)
ProcessingTimeout(TimeSpan)
public TSelf ProcessingTimeout(TimeSpan timeout)
RecipientList(Func<IExchange, IEnumerable<string>>, bool, bool, Func<IExchange, IExchange, IExchange>?)
Apache Camel parity: route to a list of recipient URIs computed at runtime.
public TSelf RecipientList(Func<IExchange, IEnumerable<string>> recipientListFactory, bool parallelProcessing = false, bool stopOnException = false, Func<IExchange, IExchange, IExchange>? aggregationStrategy = null)
RecipientList(IExpression, bool, bool, Func<IExchange, IExchange, IExchange>?, string)
public TSelf RecipientList(IExpression recipients, bool parallelProcessing = false, bool stopOnException = false, Func<IExchange, IExchange, IExchange>? aggregationStrategy = null, string uriDelimiter = ",")
RemoveAttachment(string)
Removes the attachments named name.
public TSelf RemoveAttachment(string name)
RemoveBody()
public TSelf RemoveBody()
RemoveHeader(string)
public TSelf RemoveHeader(string key)
RemoveHeaders(string, params string[])
public TSelf RemoveHeaders(string pattern, params string[] except)
RemoveProperties(string, params string[])
public TSelf RemoveProperties(string pattern, params string[] except)
RemoveProperty(string)
public TSelf RemoveProperty(string key)
Replayable(string, Action<ReplayableDefinition>, bool)
Lambda-body form of — unambiguous at any nesting level.
public TSelf Replayable(string name, Action<ReplayableDefinition> body, bool exposed = false)
Replayable(string, bool)
Opens a replay checkpoint (save-point). The steps that follow become the marker's body
public ReplayableDefinition Replayable(string name, bool exposed = false)
Resequence(Func<IExchange, long>, int, TimeSpan?)
Apache Camel parity: open a Resequencer scope. The contained child outputs receive
public ResequenceDefinition Resequence(Func<IExchange, long> keySelector, int batchSize = 100, TimeSpan? timeout = null)
RollbackAll()
public TSelf RollbackAll()
RollbackTransaction()
public TSelf RollbackTransaction()
RouteConfigurationId(string)
public TSelf RouteConfigurationId(string ids)
RouteId(string)
public TSelf RouteId(string routeId)
RoutePolicy(IRoutePolicy)
public TSelf RoutePolicy(IRoutePolicy policy)
RoutePolicy(string)
public TSelf RoutePolicy(string policyName)
RoutingSlip(Func<IExchange, IEnumerable<string>>, bool)
Apache Camel parity: Routing Slip — pipe the exchange through a list of endpoints computed
public TSelf RoutingSlip(Func<IExchange, IEnumerable<string>> slipFactory, bool ignoreInvalidEndpoints = false)
RoutingSlip(IExpression, string, bool)
Apache Camel parity: Routing Slip from an yielding a delimited URI
public TSelf RoutingSlip(IExpression slip, string uriDelimiter = ",", bool ignoreInvalidEndpoints = false)
RoutingSlip(string, string, bool)
Apache Camel parity: Routing Slip from a ${...} template (or a literal like
public TSelf RoutingSlip(string slipTemplate, string uriDelimiter = ",", bool ignoreInvalidEndpoints = false)
Saga()
Opens a saga scope. Add steps with SagaStep() / OnSagaCompletion(),
public SagaDefinition Saga()
Saga(Action<ISagaDefinition>)
public TSelf Saga(Action<ISagaDefinition> configure)
Sample(long)
public TSelf Sample(long messageFrequency)
Sample(TimeSpan)
public TSelf Sample(TimeSpan period)
ScatterGather(Action<IScatterGatherDefinition>)
public TSelf ScatterGather(Action<IScatterGatherDefinition> configure)
ScatterGather(Func<IExchange, IExchange, IExchange>, params string[])
public TSelf ScatterGather(Func<IExchange, IExchange, IExchange> aggregationStrategy, params string[] recipients)
SetBody(Func<IExchange, object?>)
public TSelf SetBody(Func<IExchange, object?> factory)
SetBody(IExpression)
public TSelf SetBody(IExpression expression)
SetBody(object?)
public TSelf SetBody(object? value)
SetHeader(string, Func<IExchange, object?>)
public TSelf SetHeader(string key, Func<IExchange, object?> factory)
SetHeader(string, IExpression)
public TSelf SetHeader(string name, IExpression expression)
SetHeader(string, object?)
public TSelf SetHeader(string key, object? value)
SetHeaders(params (string Name, object? Value)[])
public TSelf SetHeaders(params (string Name, object? Value)[] headers)
SetProperties(params (string Name, object? Value)[])
public TSelf SetProperties(params (string Name, object? Value)[] properties)
SetProperty(string, Func<IExchange, object?>)
public TSelf SetProperty(string key, Func<IExchange, object?> factory)
SetProperty(string, IExpression)
public TSelf SetProperty(string key, IExpression expression)
SetProperty(string, object?)
public TSelf SetProperty(string key, object? value)
Sort(string, string?, bool)
public TSelf Sort(string collectionExpression, string? keyExpression = null, bool descending = false)
Sort<T>(Func<IExchange, IEnumerable<T>>, Func<T, object?>?, bool, IComparer<object?>?)
public TSelf Sort<T>(Func<IExchange, IEnumerable<T>> source, Func<T, object?>? key = null, bool descending = false, IComparer<object?>? comparer = null)
SpanTag(string, IExpression, SpanTarget)
Puts the attribute key on a span of the engine, its value evaluated per message — the way to
public TSelf SpanTag(string key, IExpression value, SpanTarget target = SpanTarget.Enclosing)
SpanTag(string, string, SpanTarget)
Puts the attribute key = value (a literal) on a span of the engine, so the
public TSelf SpanTag(string key, string value, SpanTarget target = SpanTarget.Enclosing)
Split(Func<IExchange, IAsyncEnumerable<object?>>)
Opens a streaming Split scope backed by an async enumerable (no parallel / aggregation).
public SplitDefinition Split(Func<IExchange, IAsyncEnumerable<object?>> splitter)
Split(Func<IExchange, IEnumerable<object?>>)
Opens a Split scope. The splitter function splits the exchange body into parts;
public SplitDefinition Split(Func<IExchange, IEnumerable<object?>> splitter)
Split(IExpression)
Opens a Split scope using an expression to produce the split parts.
public SplitDefinition Split(IExpression expression)
Stop()
public TSelf Stop()
StreamCaching(long?)
public TSelf StreamCaching(long? spoolThreshold = null)
Threads(int)
Opens a Threads scope (Camel-style concurrency handoff). The child pipeline runs on a bounded
public ThreadsDefinition Threads(int poolSize)
Throttle(Func<IExchange, int>)
Opens a Throttle scope whose limit is computed per exchange: the factory runs on every
public ThrottleDefinition Throttle(Func<IExchange, int> maxPerPeriodFactory)
Throttle(Func<IExchange, string>, Func<IExchange, int>, TimeSpan?)
Keyed Throttle whose limit is read from each message as well as its key: "gold customers 100
public KeyedThrottleDefinition Throttle(Func<IExchange, string> keyExtractor, Func<IExchange, int> maxPerPeriodFactory, TimeSpan? period = null)
Throttle(Func<IExchange, string>, int, TimeSpan?)
Opens a keyed Throttle scope that limits throughput per unique key extracted from the exchange.
public KeyedThrottleDefinition Throttle(Func<IExchange, string> keyExtractor, int maxPerPeriod, TimeSpan? period = null)
Throttle(int)
Opens a Throttle scope that limits exchange throughput to maxPerPeriod
public ThrottleDefinition Throttle(int maxPerPeriod)
Throttle(string, string, TimeSpan?)
Keyed Throttle from two route-language expressions: the key ("header.customerId") and the
public KeyedThrottleDefinition Throttle(string keyExpression, string maxPerPeriodExpression, TimeSpan? period = null)
Throttle(string, TimeSpan?)
Throttle whose per-period limit is a route-language expression evaluated per message ("${header.rate}", "header.tier == 'gold' ? 100 : 10").
public ThrottleDefinition Throttle(string maxPerPeriodExpression, TimeSpan? period = null)
ThrowException()
public TSelf ThrowException()
ThrowException(Exception)
public TSelf ThrowException(Exception exception)
ThrowException(string)
public TSelf ThrowException(string message)
ThrowException(Type, string)
public TSelf ThrowException(Type exceptionType, string message)
ThrowException<TException>(string?)
public TSelf ThrowException<TException>(string? message = null) where TException : Exception, new()
To(string)
public TSelf To(string uri)
ToD(Func<IExchange, string>)
public TSelf ToD(Func<IExchange, string> uriFactory)
ToD(IExpression)
public TSelf ToD(IExpression uriExpression)
ToD(string)
public TSelf ToD(string uriTemplate)
Traced(string, Action<IExchange>)
public TSelf Traced(string operationName, Action<IExchange> action)
Traced(string, Func<IExchange, CancellationToken, Task>)
public TSelf Traced(string operationName, Func<IExchange, CancellationToken, Task> action)
Traced(string, IProcessor)
public TSelf Traced(string operationName, IProcessor processor)
Traced(string)
Opens a tracing scope. All child steps run inside a single Activity span named operationName.
public TracedDefinition Traced(string operationName)
Tracing(bool)
public TSelf Tracing(bool value = true)
Transaction(TransactionPolicy?)
Opens a declarative transaction scope. All child steps execute inside a
public TransactionDefinition Transaction(TransactionPolicy? policy = null)
Transform(Func<IExchange, object?>)
public TSelf Transform(Func<IExchange, object?> transform)
Transform(IExpression)
public TSelf Transform(IExpression expression)
TryCatch()
Opens a TryCatch scope. Build the try body with leaf methods,
public TryCatchDefinition TryCatch()
Unmarshal(IMessageSerializer, Type)
public TSelf Unmarshal(IMessageSerializer serializer, Type targetType)
Unmarshal(string, Type)
public TSelf Unmarshal(string contentType, Type targetType)
Unmarshal(Type, Type)
public TSelf Unmarshal(Type serializerType, Type targetType)
Unmarshal<T>()
Converts the body to T via the registered type converters —
public TSelf Unmarshal<T>()
Unmarshal<T>(IMessageSerializer)
public TSelf Unmarshal<T>(IMessageSerializer serializer)
Unmarshal<T>(string)
public TSelf Unmarshal<T>(string contentType)
Unmarshal<TSerializer, TTarget>()
public TSelf Unmarshal<TSerializer, TTarget>() where TSerializer : class
Validate(Func<IExchange, bool>, string, bool)
public TSelf Validate(Func<IExchange, bool> predicate, string errorMessage = "Validation failed", bool throwOnFailure = true)
Validate(IExpression, string, bool)
Validates the exchange against an expression read as a condition, as Filter and When read one:
public TSelf Validate(IExpression condition, string errorMessage = "Validation failed", bool throwOnFailure = true)
Validate(IMessageValidator, bool)
public TSelf Validate(IMessageValidator validator, bool throwOnFailure = true)
Validate(IPredicate, string, bool)
public TSelf Validate(IPredicate predicate, string errorMessage = "Validation failed", bool throwOnFailure = true)
ValidateJsonSchema(JsonSchema, bool)
public TSelf ValidateJsonSchema(JsonSchema schema, bool throwOnFailure = true)
ValidateJsonSchema(string, bool)
public TSelf ValidateJsonSchema(string schemaJson, bool throwOnFailure = true)
ValidateXsd(string, bool)
public TSelf ValidateXsd(string xsdContent, bool throwOnFailure = true)
ValidateXsd(string?, string, bool)
public TSelf ValidateXsd(string? targetNamespace, string xsdContent, bool throwOnFailure = true)
ValidateXsd(XmlSchemaSet, bool)
public TSelf ValidateXsd(XmlSchemaSet schemaSet, bool throwOnFailure = true)
ValidateXsdFile(string, string?, string?, bool)
public TSelf ValidateXsdFile(string schemaPath, string? targetNamespace = null, string? schemaRoot = null, bool throwOnFailure = true)
WireTap(Func<IExchange, string>, Action<IExchange>, Func<IExchange, object?>, string?)
public TSelf WireTap(Func<IExchange, string> uriFactory, Action<IExchange> onPrepare, Func<IExchange, object?> newBodyFactory, string? executorService = null)
WireTap(Func<IExchange, string>, Action<IExchange>, string?)
public TSelf WireTap(Func<IExchange, string> uriFactory, Action<IExchange> onPrepare, string? executorService = null)
WireTap(Func<IExchange, string>, Func<IExchange, object?>, string?)
public TSelf WireTap(Func<IExchange, string> uriFactory, Func<IExchange, object?> newBodyFactory, string? executorService = null)
WireTap(Func<IExchange, string>, string?)
public TSelf WireTap(Func<IExchange, string> uriFactory, string? executorService = null)
WireTap(string, Action<IExchange>, Func<IExchange, object?>, string?)
public TSelf WireTap(string uri, Action<IExchange> onPrepare, Func<IExchange, object?> newBodyFactory, string? executorService = null)
WireTap(string, Action<IExchange>, string?)
public TSelf WireTap(string uri, Action<IExchange> onPrepare, string? executorService = null)
WireTap(string, Func<IExchange, object?>, string?)
public TSelf WireTap(string uri, Func<IExchange, object?> newBodyFactory, string? executorService = null)
WireTap(string, string?)
public TSelf WireTap(string uri, string? executorService = null)
Xslt(string, XsltOutput, bool, bool)
Apache Camel xslt: parity: transform the exchange body through an XSLT stylesheet loaded
public TSelf Xslt(string stylesheetPath, XsltOutput output = XsltOutput.String, bool failOnNullBody = true, bool allowTemplateFromHeader = false)
XsltContent(string, XsltOutput, bool, bool)
Transform the exchange body through an inline XSLT stylesheet document (self-contained;
public TSelf XsltContent(string stylesheetXml, XsltOutput output = XsltOutput.String, bool failOnNullBody = true, bool allowTemplateFromHeader = false)