public static IDisposable ReceiveCommand <T>(this IBusConnection connection, Func <T, Task> handler)
 {
     return(connection.ReceiveCommand(GetMessageName(typeof(T)), x => x.On(handler)));
 }
 public static IDisposable ReceiveCommand <T>(this IBusConnection connection, ICommandHandler <T> handler)
 {
     return(connection.ReceiveCommand <T>(handler.HandleAsync));
 }
 public static IDisposable ReceiveCommand <T>(this IBusConnection connection, string commandName, Func <T, Task> handler)
 {
     return(connection.ReceiveCommand(commandName, x => x.On(handler)));
 }