public void Handle(ForwardMessage message) { _log.WarnFormat("Handled ForwardMessage, AccountId={0}, SagaId={1}", message.AccountId, Data.Id); var doSomethingCommand = new DoSomethingCommand { SagaId = Data.Id }; _log.WarnFormat("Sending DoSomethingCommand, SagaId={0}", doSomethingCommand.SagaId); Bus.Send(doSomethingCommand); var doSomethingElseCommand = new DoSomethingElseCommand { SagaId = Data.Id }; _log.WarnFormat("Sending DoSomethingElseCommand, SagaId={0}", doSomethingElseCommand.SagaId); Bus.Send(doSomethingElseCommand); }
public ImageListItemViewModel() { DoSomethingCommand = new DoSomethingCommand(); DoSomethingElseCommand = new DoSomethingElseCommand(); }
public virtual void ExecuteDoSomethingElse(DoSomethingElseCommand command) { command.Sender = Test; Test.DoSomethingElse.OnNext(command); }
public virtual void DoSomethingElseHandler(DoSomethingElseCommand command) { this.DoSomethingElse(command.Sender as TestViewModel, command.Argument); }