Class XmlRouteLoader

Namespace: redb.Route.Xml
Assembly: redb.Route.Xml.dll

Loads .route.xml documents into a through the existing
fluent DSL — no second engine. The whole document is parsed eagerly at
: beans first (so #name references resolve), then every route;
every error of the document — unknown elements, malformed expressions, unregistered URI
schemes — is collected in one pass and thrown as one with
file positions. Nothing is registered when the document has errors.

public sealed class XmlRouteLoader

Inheritance

Object→XmlRouteLoader

Methods

Load(XDocument, string?)

Parses and registers every route of the document. See the class remarks.

public void Load(XDocument document, string? sourceName = null)

Constructors

XmlRouteLoader(RouteContext, XmlRouteLoaderOptions?)

Creates a loader for the given context.