Example #1
0
 public void Log(AssemblyLoggingEvent assemblyLoadingEvent)
 {
     if (!this.isEnabled)
     {
         this.events.Enqueue(assemblyLoadingEvent);
         return;
     }
     assemblyLoadingEvent.StackTrace = (new StackTrace()).ToString();
     this.Write(assemblyLoadingEvent);
 }
Example #2
0
 private void Write(AssemblyLoggingEvent assemblyLoadingEvent)
 {
     using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
     {
         using (XmlTextWriter xmlTextWriter = new XmlTextWriter(stringWriter))
         {
             xmlTextWriter.Formatting = Formatting.Indented;
             assemblyLoadingEvent.XmlElement.WriteTo(xmlTextWriter);
             stringWriter.WriteLine();
         }
         this.Write(stringWriter.ToString());
     }
 }
 public AssemblyLoadedEvent(Assembly assembly) : this(assembly.FullName, AssemblyLoggingEvent.GetAssemblyLocation(assembly), Microsoft.Expression.Project.AssemblyLoadingAppDomain.Main)
 {
 }