Ejemplo n.º 1
0
 public override void OnNext(JournalEvent next)
 {
     try
     {
         lock (Observers)
             Observers.AsParallel().ExecuteManyWithAggregateException(i => i.OnNext(next));
     }
     catch (Exception e)
     {
         Log.Error(e, "Error caught in Async Broker");
     }
 }
Ejemplo n.º 2
0
 public override void OnCompleted()
 {
     try
     {
         lock (Observers)
             Observers.AsParallel().ExecuteManyWithAggregateException(i => i.OnCompleted());
     }
     catch (Exception e)
     {
         Log.Error(e, "Error caught in Async Broker");
     }
 }