public Task Handle(Ping message, IMessageHandlerContext context) { VerificationLogger.Write("Receiver", "Got Ping and will reply with Pong"); return(context.Reply(new Pong())); }
public void Start() { VerificationLogger.Write("Sender", "Pinging Receiver"); bus.Send(new Ping()); }
public Task Handle(MyMessage message, IMessageHandlerContext context) { return(VerificationLogger.Write("MyMessageHandler", "Got MyMessage.")); }
public Task Handle(Pong message, IMessageHandlerContext context) { VerificationLogger.Write("Sender", "Got Pong from Receiver"); return(Task.CompletedTask); }
public Task Start(IMessageSession session) { VerificationLogger.Write("Sender", "Pinging Receiver"); return(session.Send(new Ping())); }
public void Handle(Pong message) { VerificationLogger.Write("Sender", "Got Pong from Receiver"); }
public void Handle(Ping message) { VerificationLogger.Write("Receiver", "Got Ping and will reply with Pong"); bus.Reply(new Pong()); }