/// <summary>
 /// Enqueues the specified body.
 /// </summary>
 /// <param name="body">The body.</param>
 public static void Enqueue(LoggingBody body)
 {
     lock (_lock)
     {
         runner.Enqueue(body);
     }
 }
Example #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();
     }
 }
Example #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);
 }