Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IXmlSchemaValidationService.cs
1using System.Threading;
2using System.Threading.Tasks;
4
6{
11 [DefaultImplementation(typeof(XmlSchemaValidationService))]
13 {
20 void RegisterSchema(string Key, string RelativePath);
21
29 Task<bool> ValidateAsync(string Key, string Xml, CancellationToken CancellationToken = default);
30
34 bool IsRegistered(string Key);
35 }
36}
Default implementation of IXmlSchemaValidationService.
Contract for validating XML instances against pre-registered XML Schemas (XSD). Schemas are lazily lo...
Task< bool > ValidateAsync(string Key, string Xml, CancellationToken CancellationToken=default)
Validates an XML string against the schema identified by Key. Returns true if valid or schema missing...
void RegisterSchema(string Key, string RelativePath)
Registers a schema under a logical Key. The schema file must exist in the application package (Raw re...
bool IsRegistered(string Key)
Checks if a schema Key has been registered.