Example #1
0
 public async Task PublishBlockAsync(Block block)
 {
     foreach (var producer in _producers)
     {
         await producer.PublishAsync(block);
     }
 }
 private async Task PublishBlockAsync(Block block)
 {
     foreach (var producer in _producers)
     {
         try
         {
             await producer.PublishAsync(block);
         }
         catch (Exception e)
         {
             Console.WriteLine(e);
             throw;
         }
     }
 }
Example #3
0
 public Task PublishBlockAsync(Block block) => Task.CompletedTask;