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
2
votes
2 answers

EasyNetQ/RabbitMq: How to prevent duplicate message handling during debug?

Running on my dev machine as single user, I have a solution where I consume messages through EasyNetQ/Rabbitmq. Sending and subscribing works well. Now, however, I'm debugging an issue in the message handler and during the debugging, I can see that…
Anders Juul
  • 2,407
  • 3
  • 34
  • 56
2
votes
2 answers

How to write an EasyNetQ auto subscriber dispatcher for the ASP.NET Core services provider?

So, the EasyNetQ auto subscriber has a basic default dispatcher that cannot create message consumer classes with non-parameterless constructors. To see that in action, create a consumer with a required dependency. You can setup your own service or…
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
2
votes
1 answer

EasyNetQ Subscribe not working with TopShelf

I am new to this combination of RabbitMQ, EasyNetQ, TopShelf. At the moment, I am not using any DI. I am trying to subscribe queue using EasyNetQ. Subscribe works with this console application code class Program { static void Main(string[]…
crazy coding
  • 281
  • 2
  • 10
2
votes
0 answers

RabbitMQ - erl.exe high CPU consumption on Windows

My EC2 instance is consuming 100% CPU after installing RabbitMQ. Also at times 2 instance of erl.exe are visible in task manager. I have googled this issue but could not find resolution for it. I have just started with RabbitMQ and do not have much…
Rahul Jain
  • 3,130
  • 1
  • 14
  • 16
2
votes
1 answer

Dependency hell and file not found exception with Newtonsoft.Json

I build server applications using C#, .NETCore 2.0 on CentOS 7.6 using JetBrains Rider IDE (latest version). All my services are built as Docker images. I DONT use json.net in my OWN code (I use ServiceStack.Text) but many libraries use it and are…
ThommyB
  • 1,456
  • 16
  • 34
2
votes
4 answers

EasynetQ bus.Subscribe not firing - throwing "messageType must not be null"

I can successfully publish a message with the following code: using (IAdvancedBus bus = RabbitHutch.CreateBus("host=192.168.153.128:5672;username=user;password=pass").Advanced) { IExchange exchange =…
Noobie3001
  • 1,230
  • 18
  • 31
2
votes
2 answers

Declare response queue with specific name for Request/Response pattern in EasyNetQ

When using the Request/Response messaging pattern within EasyNetQ I need to declare a private response queue (with a specific name) before sending the message on the request queue? I presume the framework declares the response queue in the…
gerard
  • 835
  • 11
  • 27
2
votes
2 answers

Why do awaitable Tasks sometimes block?

I think I have a general misunderstanding of the way the async/await pair works. I'm using an EasyNetQ method (an interface for RabbitMQ in C#) and I'm trying to call the following method I created: public Task RequestDirectReply(T…
C. Williamson
  • 319
  • 3
  • 13
2
votes
3 answers

Microservice and RabbitMQ

I am new to Microservices and have a question with RabbitMQ / EasyNetQ. I am sending messages from one microservice to another microservice. Each Microservice are Web API's. I am using CQRS where my Command Handler would consume message off the…
2
votes
1 answer

EasyNetQ / RabbitMQ consuming events in Web API

I have created Web API which allows messages to be sent to the Queue. My Web API is designed with CQRS and DDD in mind. I want my message consumer to always be waiting for any messages on the queue to receive. Currently the way its done, this will…
hello world
  • 385
  • 5
  • 24
2
votes
1 answer

How to handle failed publish with RabbitMq?

We are planning to use RabbitMq for our messaging service, we'll publish all the message requests to a RabbitMq durable queue. For .Net client we've decided to use EasyNetQ, so the question is how should we handle RabbitMq server being while…
spartacus
  • 544
  • 2
  • 8
  • 16
2
votes
1 answer

Resolve commands from Bus

Currently moving away from handling commands sync and placing them onto a message bus so they can be handled later but having problems getting back the real type when trying to to load commands rather then type each one out Here is what I have so…
Luke
  • 59
  • 1
  • 6
2
votes
1 answer

C# Generics type inference for comman

I have to use specific API which I don't have control over: TResponse Request(TRequest request) where TRequest : class where TResponse : class; This is an RPC wrapper for RabbitMq from EasyNetQ library I would like to…
v00d00
  • 3,215
  • 3
  • 32
  • 43
2
votes
0 answers

"Request timed out exception" with simple Request-Response architecture

I have a very simple Request-Response architecture on which I am getting a "Request timed out" exception. First I am sending a message to a Windows Service from a Web API controller like this: using (var messageBus =…
lukegf
  • 2,147
  • 3
  • 26
  • 39
2
votes
1 answer

RabbitMQ basic.return

If I publish with confirmation(model.ConfirmSelect) AKA basic.ack and mandatory flag. Will I always get the basic.return event before the basic.ack event if the message was not delivered. I want to add all basic.return messages to…
schizofreindly
  • 177
  • 2
  • 13
1 2
3
12 13