EasyNetQ

An easy to use .NET API for RabbitMQ

Github stars Tracking Chart

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).

Overview

Name With OwnerEasyNetQ/EasyNetQ
Primary LanguageC#
Program languageC# (Language Count: 1)
Platform
License:MIT License
Release Count164
Last Release Name8.0.0-beta96 (Posted on )
First Release Name0.56.0 (Posted on )
Created At2011-04-21 15:47:20
Pushed At2024-05-14 11:22:41
Last Commit At2024-04-23 16:00:59
Stargazers Count2.9k
Watchers Count158
Fork Count749
Commits Count2.2k
Has Issues Enabled
Issues Count724
Issue Open Count67
Pull Requests Count837
Pull Requests Open Count12
Pull Requests Close Count167
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top