Beispiel #1
0
 public State()
 {
     // Inject a trace listener for debug or trace messages.
     debugTraceListener = new ContextualLogTraceListener(MarkupStreamNames.DebugTrace);
     Trace.Listeners.Add(debugTraceListener);
     Trace.AutoFlush = true;
 }
 public State()
 {
     // Inject a trace listener for debug or trace messages.
     debugTraceListener = new ContextualLogTraceListener(MarkupStreamNames.DebugTrace);
     Trace.Listeners.Add(debugTraceListener);
     Trace.AutoFlush = true;
 }
Beispiel #3
0
 public void Dispose()
 {
     // Remove trace listener.
     if (debugTraceListener != null)
     {
         Trace.Listeners.Remove(debugTraceListener);
         debugTraceListener = null;
     }
 }
 public void Dispose()
 {
     // Remove trace listener.
     if (debugTraceListener != null)
     {
         Trace.Listeners.Remove(debugTraceListener);
         debugTraceListener = null;
     }
 }