public void Handle(TestMessage message) { Console.WriteLine( "recieved reply {0} on thread {1}", message.Text, Thread.CurrentThread.ManagedThreadId); }
public void Handle(TestMessage message) { Console.WriteLine( "recieved message {0} on thread {1} sending reply...", message.Text, Thread.CurrentThread.ManagedThreadId); Bus.Reply(new TestMessage("reply to " + message.Text)); }
public void SendMessage(int i) { var query = new TestMessage {Text = "Hello" + i}; this.Messages.Add(query.Text); Bus.Send(query); }
public void Handle(TestMessage message) { this.viewModel.Replies.Add(message.Text); }
public void Handle(TestMessage message) { Console.WriteLine("recieved message {0}", message.Text); }