Struct DynamicValue<T>
A value that is either static (resolved at endpoint creation)
or dynamic (resolved per-message from exchange via ${...} expressions).
The property type itself is the contract: DynamicValue{T} = "may be an expression".
public readonly struct DynamicValue<T>
Properties
Methods
FromExpression(Func<IExchange, T?>)
Creates a dynamic value from a compiled expression resolver.
public static DynamicValue<T> FromExpression(Func<IExchange, T?> resolver)
FromExpression(IExpression)
Creates a dynamic value from an .
public static DynamicValue<T> FromExpression(IExpression expression)
Resolve(IExchange)
Resolves the value. Static = instant return, dynamic = evaluates compiled expression.
public T? Resolve(IExchange exchange)