A simple RabbitMQ client implemented in .net core 2.2 with IHostedService
- Install .net core 2.2 SDK https://dotnet.microsoft.com/download/dotnet-core/2.2
- dotnet new console
- dotnet add package Microsoft.Extensions.Hosting --version 2.2.0
- dotnet add package Microsoft.Extensions.DependencyInjection --version 2.2.0
- dotnet add package RabbitMQ.Client --version 5.1.0
- add
<LangVersion>latest</LangVersion>
to a .csproj file
dotnet build
dotnet run