Method ResolveTypedOrTemplate(string, IExchange)

Assembly: redb.Route.dll

Resolves a template with type preservation for single expressions.
If the template is a single ${expr} with no surrounding text,
resolves via preserving the CLR type (Guid, DateTimeOffset, int, etc.).
Composite templates (e.g. prefix-${x}-suffix) fall back to returning a string.

public static object? ResolveTypedOrTemplate(string template, IExchange exchange)