Exemplo n.º 1
0
 public LogStandard(string @namespace, string traceIdentifier, LogStandardEntry traceIdIdentifier, string eventIdentifier,
     LogStandardEntry eventIdIdentifier, LogStandardEntry eventNameIdentifier, LogStandardEntry actorNameIdentifier)
 {
     Namespace = @namespace;
     TraceIdentifier = traceIdentifier;
     TraceIdIdentifier = traceIdIdentifier;
     EventIdentifier = eventIdentifier;
     EventIdIdentifier = eventIdIdentifier;
     EventNameIdentifier = eventNameIdentifier;
     ActorNameIdentifier = actorNameIdentifier;
 }
Exemplo n.º 2
0
 private static string GetValue(this XElement element, XNamespace ns, LogStandardEntry attribute)
 {
     try
     {
         return (string)
         element.Descendants(ns + attribute.DataType.ToString().ToLower())
             .First(x => x.Attribute("key").Value == attribute.Name)
             .Attribute("value");
     }
     catch
     {
         return "";
     }
 }