示例#1
0
 public void RegisterCommand <TCommand>(Func <TCommand, Task> onCommand)
 {
     _commands.RegisterEvent(onCommand);
 }
示例#2
0
 public void RegisterEvent <TEvent>(Func <TEvent, Task> onEvent)
 {
     _events.RegisterEvent(onEvent);
 }