/// <summary>
 /// Enqueues the specified body.
 /// </summary>
 /// <param name="body">The body.</param>
 public static void Enqueue(LoggingBody body)
 {
     lock (_lock)
     {
         runner.Enqueue(body);
     }
 }
예제 #2
0
 /// <summary>
 /// Enqueues the specified body.
 /// </summary>
 /// <param name="body">The body.</param>
 public void Enqueue(LoggingBody body)
 {
     lock (_lock)
     {
         queue.Enqueue(body);
         me.Set();
     }
 }
예제 #3
0
 /// <summary>
 /// Writes the specified body.
 /// </summary>
 /// <param name="body">The body.</param>
 private void Write(LoggingBody body)
 {
     WriteInvoke(body.Content, body.Level, body.Exception);
 }