コード例 #1
0
 public static IDisposable ReceiveCommand <T>(this IBusConnection connection, Func <T, Task> handler)
 {
     return(connection.ReceiveCommand(GetMessageName(typeof(T)), x => x.On(handler)));
 }
コード例 #2
0
 public static IDisposable ReceiveCommand <T>(this IBusConnection connection, ICommandHandler <T> handler)
 {
     return(connection.ReceiveCommand <T>(handler.HandleAsync));
 }
コード例 #3
0
 public static IDisposable ReceiveCommand <T>(this IBusConnection connection, string commandName, Func <T, Task> handler)
 {
     return(connection.ReceiveCommand(commandName, x => x.On(handler)));
 }