public override async Task SendMessages(IBus bus, Func<bool> shouldKeepSending)
 {
     while (shouldKeepSending())
     {
         var command = new FooCommand
                       {
                           SomeMessage = new string(Enumerable.Range(0, 32*1024).Select(j => '.').ToArray())
                       };
         await bus.Send(command);
         IncrementExpectedMessageCount();
     }
 }
 public override IEnumerable<Task> SendMessages(IBus bus)
 {
     for (var i = 0; i < NumMessagesToSend; i++)
     {
         var command = new FooCommand
                       {
                           SomeMessage = new string(Enumerable.Range(0, 32*1024).Select(j => '.').ToArray()),
                       };
         yield return bus.Send(command);
         Console.Write(".");
     }
     Console.WriteLine();
 }