2using System.Collections.Generic;
4using System.Xml.Schema;
12 internal class XmlValidator
14 private readonly
string objectId =
null;
15 private XmlSchemaException exception;
17 public XmlValidator(
string ObjectID)
19 this.objectId = ObjectID;
20 this.exception =
null;
23 internal void ValidationCallback(
object Sender, ValidationEventArgs e)
27 case XmlSeverityType.Error:
28 this.exception = e.Exception;
31 case XmlSeverityType.Warning:
32 if (!
string.IsNullOrEmpty(this.objectId))
38 internal XmlSchemaException Exception => this.exception;
39 internal bool HasError {
get {
return !(this.exception is
null); } }
41 internal void AssertNoError()
43 if (!(this.exception is
null))
Static class managing the application event log. Applications and services log events on this static ...
static void Warning(string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
Logs a warning event.