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
1
vote
1 answer

EasyNetQ deserialize: why does my message not succeed and typeName is "null"?

I have a repository which is a message Consumer, working with RabbitMQ and using the ITypeNameSerializer to map received messages on the queue, to known types that we can process. First I'll show some code: I have a custom serializer class: internal…
Tempuslight
  • 1,004
  • 2
  • 17
  • 34
1
vote
1 answer

What port is used on the client machine to send messages to rabbitmq?

I have created a small class for demonstration purpose that sends a message to rabbitmq on a specific port: class RabbitMqPublisher { private IAdvancedBus _advancedBus; public RabbitMqPublisher() { _advancedBus =…
meJustAndrew
  • 6,011
  • 8
  • 50
  • 76
1
vote
1 answer

Compilation error when trying to use topics with EasyNetQ in F#

I am trying to subscribe to a RabbitMq topic using the PubSub.Subscribe method in EasyNetq with F#. The function subscribeToAppQueueWithoutTopic compiles and works but the subscribeToAppQueueWithTopic function will not compile at all. let…
Canacourse
  • 1,805
  • 2
  • 20
  • 37
1
vote
0 answers

'Unexpected Exception' after upgrading EasyNetQ 3.4.5 to Latest 6.3.1

After upgrading the EasyNetQ package to 6.3.1 I get the below error. Code was running on version 3.4.5 The AMQP operation was interrupted: AMQP close-reason, initiated by Library, code=541, text='Unexpected Exception', classId=0, methodId=0,…
Jamie
  • 380
  • 8
  • 19
1
vote
1 answer

EasyNetQ Publish method not found

I have been going through the set up for EasyNetQ https://github.com/EasyNetQ/EasyNetQ/wiki/Quick-Start The following code using System; using EasyNetQ; static void Main(string[] args) { using (var bus =…
Ashley Kilgour
  • 1,110
  • 2
  • 15
  • 33
1
vote
1 answer

How to correctly use EasyNetQ in a multi-threaded environment

I'm learning about message brokers (specifically RabbitMQ) and I've started a project using EasyNetQ. From what I have read, the best practice is to use long-standing connections to the broker and end them at the end of your application. In my…
1
vote
1 answer

EasyNetQ is not acknowledging received messages

After connecting and receiving messages from RabbitMQ they are not being removed from the queue. Every time I connect I receive the same messages, and only one. using(bus = RabbitHutch.CreateBus("host=localhost")) { …
Evandro Pomatti
  • 13,341
  • 16
  • 97
  • 165
1
vote
2 answers

EasyNetQ classic queue on RabbitMq 3.8

Since RabbitMq version 3.8.0 queues are create with x-queue-type: classic by default, this seems to be causing an error on EasyNetQ. Running the following snippet will trigger an error this.bus.Receive(queueName, onMessage); Error The AMQP…
1
vote
1 answer

EasyNetQ Wait for event from ISubscriptionResult

I am using EasyNetQ for mamanging my RabbitMq messenging bus using f# well its quite simple this one publishes messenges: let HandleBusResponse (data:BaseFrame) (bus:IBus) : ISubscriptionResult = let handler = Action(fun…
Wojciech Szabowicz
  • 3,646
  • 5
  • 43
  • 87
1
vote
0 answers

How to accept and reject (Ack and Nack) messages manually?

I create a consumer base to retrieve each message from RabbitMq. I'm using easynetq to consume the messages in which the consumer is configured by advanced mode because the queue has some different configurations. Once recevied a message a call…
Kadu
  • 343
  • 7
  • 17
1
vote
1 answer

How to programmatically resend messages that have faulted with EasyNetQ?

I am wondering how to resend messages that have faulted with EasyNetQ, programmatically, without using HosePipe, that is to resend to their original target queue using their original sending exchange. Is it possible, how?
Natalie Perret
  • 8,013
  • 12
  • 66
  • 129
1
vote
1 answer

Easynetq - Read multiple messages from a RabbitMQ

I have a solution which consists of 3 services, there are 2 queues to pass on messages from one service to the other, and it's using the EasyNetQ C# library to connect to RabbitMQ. This is the outline of the architecture: Receive data from network…
Dawood Awan
  • 7,051
  • 10
  • 56
  • 119
1
vote
4 answers

RabbitMQ .Net core

To configure a rabbitmq consumer in .net core I see examples of Console Application. I am not sure for production ready apps can a Console app would be a right fit as stand alone Rabbitmq Consumer. Please share your thoughts what's the recommended…
MADHU VS
  • 79
  • 7
1
vote
1 answer

EasyNetQ - How to retry failed messages & persist RetryCount in message body/header?

I am using EasyNetQ and need to retry failed messages on the original queue. The problem is: even though I successfully increment the TriedCount variable (in the body of every msg), when EasyNetQ publishes the message to the default error queue…
Abubakar Mehmood
  • 938
  • 1
  • 10
  • 19
1
vote
1 answer

EasyNetQ (AMQP) Single Application Connection In ASP.NET?

Community: I'm struggling to figure out how to create a single AMQP connection that lives with my ASP.NET application lifecycle in ASP.NET using .NET Core 2.1. After researching, I've found lots of references to using a single AMQP connection for…
jayc
  • 11
  • 3