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