Path: redb-route/demo/SerialNumbersDemo/SerialNumbers.Core/Integration/Xml/XmlSchemas.cs Snapshot: redb-route, 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-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/demo/SerialNumbersDemo/SerialNumbers.Core/Integration/Xml/XmlSchemas.cs ---- namespace SerialNumbers.Core.Integration.Xml; /// The XSD schemas of the partner messages, compiled into the module as resources. public static class XmlSchemas { public static readonly string SerialNumberRequest = Load("SerialNumberRequest.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(); } }