Method SetBodyTemplate(IRouteDefinition, TextSource, MediaType, Action<TemplateArgs>?)

Assembly: redb.Route.Templates.dll

Renders the template into the message body; ContentType follows mediaType.

public static IRouteDefinition SetBodyTemplate(this IRouteDefinition route, TextSource source, MediaType mediaType, Action<TemplateArgs>? args = null)