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