Exemple #1
0
 public OutputProvider()
 {
     Task.Run(async() =>
     {
         while (true)
         {
             LiftEvent @event = await _events.TakeAsync().ConfigureAwait(false);
             @event.WriteToConsoleLocking();                     // is pretty OK since the output is fast
         }
     });
 }
Exemple #2
0
 public void Write(LiftEvent item)
 => _events.Add(item);