Path: redb/redb.Templates/templates/redb-worker/RedbWorker.Module/Xml/XmlSchemas.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-worker/RedbWorker.Module/Xml/XmlSchemas.cs ---- namespace RedbWorker.Module.Xml; /// The XSD schemas, compiled into the module as resources. public static class XmlSchemas { public static readonly string Order = Load("Order.xsd"); private static string Load(string fileName) { var name = $"{typeof(XmlSchemas).Namespace}.{fileName}"; using var stream = typeof(XmlSchemas).Assembly.GetManifestResourceStream(name) ?? throw new InvalidOperationException($"Embedded schema '{name}' was not found."); using var reader = new StreamReader(stream); return reader.ReadToEnd(); } }