Questions tagged [easynetq]

EasyNetQ is a simple to use, opinionated, .NET API for RabbitMQ.

[EasyNetQ] (easynetq.com) is the leading client API for RabbitMQ on .NET, with over 100,000 downloads on NuGet.org. It is an open source project originally sponsored by 15below the travel industry experts.

QuickStart can be found here

Documentation can be found here

183 questions
5
votes
1 answer

What's the correct way to implement the EasyNetQ pub/sub pattern in ASP.NET Core 2.x?

I'm curious about the correct way to implement the EasyNetQ pub/sub pattern in an ASP.NET Core 2.x application. Specifically, I need to make sure that the lifecycle on all these resources are correct and that the subscription threads are owned/live…
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
5
votes
2 answers

EasyNetQ - receiving from existing queue

I am looking at using EasyNetQ for interacting with RabbitMQ and wondering if it can support following case: Queue is declared externally with some arbitrary arguments (e.g. x-message-ttl) Client code using EasyNetQ sends and receives messages from…
Oleksii Zuiev
  • 566
  • 1
  • 7
  • 17
5
votes
2 answers

RabbitMQ LDAP authentication failing

I'm going through the process of setting up RabbitMQ with LDAP authorization but am not having much luck... Could someone in the know, please take a look and tell me what I'm doing wrong? I'm able to query LDAP to get the user object with the…
Rob
  • 981
  • 12
  • 27
4
votes
1 answer

EasyNetQ Field Not Found 'RabbitMQ.Client.ConnectionFactory.AutomaticRecoveryEnabled'

With EasyNetQ v0.63.0.448, RabbitMqClient v4.0.2 and RabbitMq server 3.6.5 when I try to create a bus like so... bus = RabbitHutch.CreateBus(new ConnectionConfiguration() { Hosts = new[] { new HostConfiguration() {…
gmn
  • 4,199
  • 4
  • 24
  • 46
4
votes
1 answer

Using Ninject With EasyNetQ/RabbitMQ Message Handlers

I'm attempting to use EasyNetQ with Ninject to log messages. I've managed to setup Ninject as the EasyNetQ DI (I think), but when a message comes to a handler without a parameterless constructor (e.g. I need a repository bound in there), it doesn't…
MindingData
  • 11,924
  • 6
  • 49
  • 68
4
votes
1 answer

EasyNetQ with asp.net web api as subscriber

I have to implement a asp.net web api which acts as a subscriber to rabbitMQ. The windows service is going to publish message to the web api services. There will be more than one instance of web api running on production enviornment. I am not sure…
user1213831
  • 309
  • 7
  • 22
3
votes
1 answer

SignalR hub resolves to null inside RabbitMQ subscription handler in ASP.NET Core

I have an ASP.NET Core MVC project with RabbitMQ (by means of EasyNetQ) and SignalR. Next, I have a subscription on a RabbitMQ message that should send a notification to the client via SignalR. But sadly, the hub always resolves to null. An…
Sandor Drieënhuizen
  • 6,310
  • 5
  • 37
  • 80
3
votes
1 answer

Published and waiting for response on a topic with RabbitMQ / EasyNetQ - how to get only yours?

When a publisher expects an answer to a message, how to ensure it will get only relevant answers (to its own messages) when you scale it out? We have a client process that publishes a message for a server process to answer. Additionally, we have a…
PeterLi
  • 71
  • 5
3
votes
1 answer

EasyNetQ not reconnecting after RabbitMQ server was unreachable

I am trying some edge cases in my software. So I have created a very simple test environment: RabbitMQ server running on CentOS 7 Message consumer written against .NETCore 2.1 in C# running under CentOS 7 Message sender written against .NETCore 2.1…
ThommyB
  • 1,456
  • 16
  • 34
3
votes
1 answer

How to notify AngularJS application from EasyNetQ

So I have the following architecture: an Angular SPA (single page application) performs a call to a .NET Web API controller, which publishers a message to a Publisher EasyNetQ window service, which sends an asynchronous request to a second EasyNetQ…
lukegf
  • 2,147
  • 3
  • 26
  • 39
3
votes
1 answer

Autofac singleton from factory method

I'm pretty much looking for a port to Autofac that is implemented here with Castle Windsor. The IBus is an interface provided by EasyNetQ library and I'd like to register a factory that would instantiate the IBus instance as a singleton.…
the berserker
  • 1,553
  • 3
  • 22
  • 39
3
votes
1 answer

using EasyNetQ multiple Handler for one consumer does not work

We are using RabbitMQ for queuing messages in C# .Net (EasyNetQ Client). i want one consumer app (C# Console App) listen to one queue and provide multiple handlers for each message type. I implemented this scenario and my code is here : using (var…
Javad Norouzi
  • 327
  • 4
  • 11
3
votes
1 answer

What happens when publishing messages with EasyNetQ and the bus is disconnected?

I'm currently investigating this but thought I'd ask anyway. Will post an answer once I find out if not answered. The problem is as follows: An application calls RabbitHutch.CreateBus to create an instance of IBus/IAdvancedBus to publish messages to…
jeanml
  • 213
  • 2
  • 5
  • 14
3
votes
1 answer

RabbitMQ / EasyNetQ drops connections when machine very active?

I'm new to RabbitMQ / EasyNetQ and am trying to better understand a behaviour I am observing. We've seen that when our server running RabbitMQ is busy all EasyNetQ connections are dropped. This is the exception simultaneously generated on all…
Jason Kealey
  • 7,988
  • 11
  • 42
  • 55
2
votes
1 answer

EasyNetQ Topic Routing

Hi I have a question I have a main service and two client service, client service can be identified by unique id, not to communicate between sewer and clients I use RabbitMq with EasyNetQ, so what I want is to use single queue with some sort of…
Wojciech Szabowicz
  • 3,646
  • 5
  • 43
  • 87
1
2
3
12 13