Example #1
0
        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);
        }
Example #2
0
 public ImageListItemViewModel()
 {
     DoSomethingCommand     = new DoSomethingCommand();
     DoSomethingElseCommand = new DoSomethingElseCommand();
 }
 public virtual void ExecuteDoSomethingElse(DoSomethingElseCommand command) {
     command.Sender = Test;
     Test.DoSomethingElse.OnNext(command);
 }
Example #4
0
 public virtual void DoSomethingElseHandler(DoSomethingElseCommand command)
 {
     this.DoSomethingElse(command.Sender as TestViewModel, command.Argument);
 }
 public virtual void DoSomethingElseHandler(DoSomethingElseCommand command) {
     this.DoSomethingElse(command.Sender as TestViewModel, command.Argument);
 }
Example #6
0
 public virtual void ExecuteDoSomethingElse(DoSomethingElseCommand command)
 {
     command.Sender = Test;
     Test.DoSomethingElse.OnNext(command);
 }