public static void UseCommand() { var firstCommand = new FirstCommand(1); var secondCommand = new SecondCommand(2); firstCommand.Execute(); secondCommand.Execute(); }
public void Handle(SecondCommand command) { _eventAggregator.Publish(new CommandExecuted <SecondCommand>()); }
public CommandCompleted Handle(SecondCommand command) { return(new CommandCompleted()); }
private void SecondClick(object sender, EventArgs e) { SecondCommand?.Execute(null); }