EasyNetQ

An easy to use .NET API for RabbitMQ

Github星跟踪图

Build status

NuGet status

--

EasyNetQ Logo

A Nice .NET API for RabbitMQ

Initial development was sponsored by travel industry experts 15below

Goals:

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

To connect to a RabbitMQ broker...

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

To publish a message...

bus.Publish(message);

To subscribe to a message...

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

Remote procedure call...

var request = new TestRequestMessage {Text = "Hello from the client! "};
bus.Request<TestRequestMessage, TestResponseMessage>(request, response => 
    Console.WriteLine("Got response: '{0}'", response.Text));

RPC server...

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

Management API

EasyNetQ also has a client-side library for the RabbitMQ Management HTTP API. This lets you control all aspects for your
RabbitMQ broker from .NET code, including creating virtual hosts and users; setting permissions; monitoring queues,
connections and channels; and setting up exchanges, queues and bindings.

See the documentation.

The announcement blog post is here

Some blog posts about EasyNetQ ...

http://mikehadlow.blogspot.co.uk/search/label/EasyNetQ

Getting started

Just open EasyNetQ.sln in VisualStudio and build.

All the required dependencies for the solution file to build the software are included. To run the explicit tests that send messages you will have to be running the EasyNetQ.Tests.SimpleService application and have a working local RabbitMQ server (see http://www.rabbitmq.com/ for more details).

主要指标

概览
名称与所有者EasyNetQ/EasyNetQ
主编程语言C#
编程语言C# (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2011-04-21 15:47:20
推送于2025-04-01 03:23:04
最后一次提交2025-01-24 13:59:24
发布数168
最新版本名称8.0.0-beta99 (发布于 )
第一版名称0.56.0 (发布于 )
用户参与
星数3k
关注者数156
派生数753
提交数2.2k
已启用问题?
问题数747
打开的问题数83
拉请求数855
打开的拉请求数10
关闭的拉请求数184
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?