public void HandleCommand(ICommand command) { CommandBus.Add(command); CommandBus.HandleNext(); while (!EventBus.IsBusEmpty) { EventBus.HandleNext(); } }
public void AddCommandHandler(ICommandHandler handler) { CommandBus.Add(handler); }
public void AddCommandHandler(ICommandHandler handler) { VerifyHandler(handler); commandBus.Add(handler); }