private void TraceInternal(TraceEventCache eventCache, string xmlApplicationData, int eventId, TraceEventType type)
 {
     try
     {
         EtwTrace.Trace(xmlApplicationData, TraceTypeOf(type), eventId);
     }
     catch (Win32Exception exception)
     {
         if (DebugTrace.Warning)
         {
             DebugTrace.Trace(TraceLevel.Warning, "Exception thrown from ETW Trace : {0} ", exception.Message);
         }
     }
 }
 public override void TraceTransfer(TraceEventCache eventCache, string source, int id, string message, Guid relatedActivityId)
 {
     try
     {
         EtwTrace.TraceTransfer(relatedActivityId);
     }
     catch (Win32Exception exception)
     {
         if (DebugTrace.Warning)
         {
             DebugTrace.Trace(TraceLevel.Warning, "Exception thrown from ETW Trace : {0} ", exception.Message);
         }
     }
 }
 public override void WriteLine(string text)
 {
     EtwTrace.Trace(text, TraceType.Trace, 0);
 }