HangfireIO / HangfireIO/Hangfire.SqlServer.RabbitMq

EasyNetQ library

Open
#10 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
37
Forks
23
PR merge metrics
No merged PRs in 30d

Description

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("test", HandleTextMessage);

Console.WriteLine("Listening for messages. Hit 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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the Hangfire.SqlServer.RabbitMq project and its tests, then compare the proposed EasyNetQ Quick Start usage with the existing EventingBasicConsumer code. Done should mean the reference and wrapper usage are agreed on and code duplication is reduced without breaking the existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, rabbitmq
Domain
backend, distributed-systems
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.