private void BroadcastTopicData(IEventProducer producer, int count) { Enumerable.Range(0, count).ToList().ForEach(async(i) => { await producer.BroadcastTopic(new Data { IntProp = i, StrProp = DateTime.Now.ToLongTimeString() }); }); }
private void BroadcastTopicData(IEventProducer producer, int count) { Enumerable.Range(0, count).ToList().ForEach(async(i) => { await producer.BroadcastTopic(new Data { IntProp = i, StrProp = DateTime.Now.ToLongTimeString() }); }); }