I need help, I have two console application that communicate via RawRabbit
.
I first wrote one console applications and added both the Publisher
and the Receiver
to see if the connection is happening:
var busClient = BusClientFactory.CreateDefault(busConfig);
busClient.SubscribeAsync<UserMessage>(async (resp, context) => {
Console.Clear();
Console.WriteLine(resp.msg);
Console.WriteLine("Hi {0}, I am your father.", resp.name);
});
busClient.PublishAsync(new UserMessage { msg = "Hello my name is, " + name, name = name });`
This works.
Now I want to move the receiver to another console application, When I do that, it does not work.