EasyNetQ 8.1.5 (original) (raw)

Build status

NuGet Status Nuget Status Nuget Status

Activity Activity Activity

A Nice .NET API for RabbitMQ

Initial development was sponsored by travel industry experts 15below

Goals:

Important Update

With the release of EasyNetQ v8, the method for connecting to a RabbitMQ broker has changed. The rest of the API remains unchanged.

To make working with RabbitMQ on .NET as easy as possible.

To connect to a RabbitMQ broker in v7...

    var bus = RabbitHutch.CreateBus("host=localhost");

To connect to a RabbitMQ broker in v8...

    var serviceCollection = new ServiceCollection();
    serviceCollection.AddEasyNetQ("host=localhost").UseSystemTextJson();

    using var provider = serviceCollection.BuildServiceProvider();
    var bus = provider.GetRequiredService<IBus>();

To publish a message...

    await bus.PubSub.PublishAsync(message);

To publish a message with a 5s delay...

    await bus.Scheduler.FuturePublishAsync(message, TimeSpan.FromSeconds(5));

To subscribe to a message...

    await bus.PubSub.SubscribeAsync<MyMessage>(
        "my_subscription_id", msg => Console.WriteLine(msg.Text)
    );

Remote procedure call...

    var request = new TestRequestMessage {Text = "Hello from the client! "};
    await bus.Rpc.RequestAsync<TestRequestMessage, TestResponseMessage>(request);

RPC server...

    await bus.Rpc.RespondAsync<TestRequestMessage, TestResponseMessage>(request =>
        new TestResponseMessage{ Text = request.Text + " all done!" }
    );

Getting started

Just open EasyNetQ.sln in your preferred IDE or code editor and build. All the required dependencies for the solution file to build the software are included.

Contributors

Thanks to all the people who already contributed!

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed.
.NET Core netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed.
.NET Standard netstandard2.0 is compatible. netstandard2.1 was computed.
.NET Framework net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed.
MonoAndroid monoandroid was computed.
MonoMac monomac was computed.
MonoTouch monotouch was computed.
Tizen tizen40 was computed. tizen60 was computed.
Xamarin.iOS xamarinios was computed.
Xamarin.Mac xamarinmac was computed.
Xamarin.TVOS xamarintvos was computed.
Xamarin.WatchOS xamarinwatchos was computed.

NuGet packages (192)

Showing the top 5 NuGet packages that depend on EasyNetQ:

Package Downloads
EasyNetQ.DI.Microsoft An adaptor to allow EasyNetQ to use Microsoft.Extensions.DependencyInjection as its internal IoC container 4.4M
EasyNetQ.Logging.Microsoft An adaptor to allow EasyNetQ to use Microsoft.Extensions.Logging 2.7M
Shesha.Framework Package Description 2.3M
EasyNetQ.DI.Autofac An adaptor to allow EasyNetQ to use Autofac as its internal IoC container 1.9M
EasyNetQ.Serialization.SystemTextJson An adaptor to allow EasyNetQ to use System.Text.Json serializer 1.5M

GitHub repositories (9)

Showing the top 9 popular GitHub repositories that depend on EasyNetQ:

Repository Stars
revoframework/Revo Event Sourcing, CQRS and DDD framework for C#/.NET Core. 714
SkyChenSky/Sikiro 整合了社区主流开源框架(CAP、SkyAPM、WebAPIClient、Chloe等)的微服务项目示例 419
henriquelourente/Domain-Driven-Design-Sample ASP.NET Core sample with DDD concepts 382
asc-lab/better-code-with-ddd This repository contains code that accompanies presentation ASC LAB team gave at meetup about “Creating better code with Domain Driven Design”. 320
LeonKou/NetPro 🌈An enhanced version with clean architecture of asp.netcore,efficiently manage startup,Support for netcore3.1/6.0 216
DavidChild/Bitter.Core.Orm.NetCore bitter.core is a high-performance and easy-to-use netcore / netframework orm framework. I think you'll love it. designed for development and efficiency. efficiency, high performance and high stability are always the pursuit of programmers. bittercore was born for that. you want to be lazy, even lazier! simple, more simple! controllable, more controllable! please use it bitter.Core . 205
EasyNetQ/EasyNetQ.Management.Client EasyNetQ.Management.Client is a .NET client for the RabbitMQ RESTful management API 152
oncemi/OnceMi.Framework 基于.NET 7和Vue 2开发的企业级前后端分离权限管理开发框架(后台管理系统),具有组织管理、角色管理、用户管理、菜单管理、授权管理、计划任务、文件管理等功能。支持国内外多种流行数据库,支持IdentityServer4认证中心。 139
netcorebcn/quiz Example real time quiz application with .NET Core, React, DDD, Event Sourcing, Docker and built-in infrastructure for CI/CD with k8s, jenkins and helm 124

Include prerelease

Include vulnerable

Include deprecated

Version Downloads Last Updated
8.1.5 657 6/15/2026
8.1.4 54,687 4/28/2026
8.1.3 19,194 4/23/2026
8.1.2 83,215 3/4/2026
8.1.1 38,817 1/29/2026
8.1.0 16,856 1/20/2026
8.0.1 89,532 12/29/2025
8.0.0-beta99 69,919 3/7/2025
8.0.0-beta98 98,769 6/12/2024
8.0.0-beta97 426 6/7/2024
8.0.0-beta96 57,272 3/15/2024
8.0.0-beta95 13,409 10/22/2023
8.0.0-beta94 19,480 6/18/2023
8.0.0-beta93 2,804 6/17/2023
8.0.0-beta92 2,972 6/17/2023
7.8.0 6,733,184 12/16/2023
7.7.0 285,753 11/19/2023
7.6.0 241,951 10/12/2023
7.5.5 1,614,310 7/20/2023
7.5.4 8,336 7/19/2023