Class RedbRouteBuilderXmlExtensions
The DI surface: the same three loading overloads plus context.xml on
, applied at context-start time through the standard
hook — an ordinary ASP.NET host loads XML routes
with one line inside AddRedbRoute(...), no Tsak required.
public static class RedbRouteBuilderXmlExtensions
Inheritance
Methods
AddXmlContext(RedbRouteBuilder, string, XmlRouteLoaderOptions?)
Loads a context.xml (components, context beans, onInit) at context start.
public static RedbRouteBuilder AddXmlContext(this RedbRouteBuilder self, string filePath, XmlRouteLoaderOptions? options = null)
AddXmlRoutes(RedbRouteBuilder, params string[])
Loads the named route files at context start.
public static RedbRouteBuilder AddXmlRoutes(this RedbRouteBuilder self, params string[] filePaths)
AddXmlRoutes(RedbRouteBuilder, string, XmlRouteLoaderOptions?)
Loads route files by a glob pattern (or one wildcard-free path) at context start.
public static RedbRouteBuilder AddXmlRoutes(this RedbRouteBuilder self, string globPattern, XmlRouteLoaderOptions? options = null)
AddXmlRoutesFromContent(RedbRouteBuilder, string, string?, XmlRouteLoaderOptions?)
Parses the XML text at context start — tests and generated hosts.
public static RedbRouteBuilder AddXmlRoutesFromContent(this RedbRouteBuilder self, string xml, string? sourceName = null, XmlRouteLoaderOptions? options = null)