Class RouteContextXmlExtensions
Loading sugar on — the TestKit-style surface
(new RouteContext().AddXmlRoutesFromContent(...)) and file loading. Both go through one
.
public static class RouteContextXmlExtensions
Inheritance
Methods
AddXmlContext(RouteContext, string, XmlRouteLoaderOptions?)
Loads a context.xml file through the route resource resolver.
public static RouteContext AddXmlContext(this RouteContext context, string filePath, XmlRouteLoaderOptions? options = null)
AddXmlContextFromContent(RouteContext, string, string?, XmlRouteLoaderOptions?)
Parses a context.xml text: components, context beans, the onInit pipeline.
public static RouteContext AddXmlContextFromContent(this RouteContext context, string xml, string? sourceName = null, XmlRouteLoaderOptions? options = null)
AddXmlRoutes(RouteContext, params string[])
Loads every named .route.xml file, each parsed with its own positions.
public static RouteContext AddXmlRoutes(this RouteContext context, params string[] filePaths)
AddXmlRoutes(RouteContext, string, XmlRouteLoaderOptions?)
Loads route files by a glob pattern ("routes/*.route.xml"); a plain path without
public static RouteContext AddXmlRoutes(this RouteContext context, string globPattern, XmlRouteLoaderOptions? options = null)
AddXmlRoutesFromContent(RouteContext, string, string?, XmlRouteLoaderOptions?)
Parses the XML text and registers its routes. Errors carry positions and are aggregated.
public static RouteContext AddXmlRoutesFromContent(this RouteContext context, string xml, string? sourceName = null, XmlRouteLoaderOptions? options = null)