You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To prevent code duplication in Hangfire.SqlServer.RabbitMq and in tests wrapper for EventingBasicConsumer should be written. A ready solution exists: EasyNetQ library (https://github.com/EasyNetQ/EasyNetQ/wiki/Quick-Start):
static void Main(string[] args)
{
using (var bus = RabbitHutch.CreateBus("host=localhost"))
{
bus.Subscribe<TextMessage>("test", HandleTextMessage);
Console.WriteLine("Listening for messages. Hit <return> to quit.");
Console.ReadLine();
}
}
static void HandleTextMessage(TextMessage textMessage)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Got message: {0}", textMessage.Text);
Console.ResetColor();
}
What do you think about adding it's reference to the solution and usage?
The text was updated successfully, but these errors were encountered:
To prevent code duplication in Hangfire.SqlServer.RabbitMq and in tests wrapper for EventingBasicConsumer should be written. A ready solution exists: EasyNetQ library (https://github.com/EasyNetQ/EasyNetQ/wiki/Quick-Start):
What do you think about adding it's reference to the solution and usage?
The text was updated successfully, but these errors were encountered: