Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyNetQ library #10

Open
nithrous opened this issue Mar 5, 2017 · 1 comment
Open

EasyNetQ library #10

nithrous opened this issue Mar 5, 2017 · 1 comment

Comments

@nithrous
Copy link
Contributor

nithrous commented Mar 5, 2017

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?

@rezaaghaie
Copy link

rezaaghaie commented Dec 19, 2018

@odinserj , Is this thread and totally this project (Hangfire.SqlServer.RabbitMq) open and under development?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants