An adaptor to allow EasyNetQ to use Autofac as its internal IoC container
$ dotnet add package EasyNetQ.DI.Autofac
A Nice .NET API for RabbitMQ
Initial development was sponsored by travel industry experts 15below
Goals:
To connect to a RabbitMQ broker...
var bus = RabbitHutch.CreateBus("host=localhost");
To publish a message...
await bus.PubSub.PublishAsync(message);
To publish a message with 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)
);
<a href="https://github.com/EasyNetQ/EasyNetQ/graphs/contributors">
<img src="https://contributors-img.web.app/image?repo=EasyNetQ/EasyNetQ" />
</a>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!" }
);
Just open EasyNetQ.sln in VisualStudio or Rider and build. All the required dependencies for the solution file to build the software are included.
Thanks to all the people who already contributed!