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; } } }
public Task PublishBlockAsync(Block block) => Task.CompletedTask;