EasyNetQ v6.2.0 Release Notes
Release Date: 2020-11-15 // over 3 years ago-
๐ฑ ๐ Features
- Publishing with mandatory flag #1150
A global setting
MandatoryPublish
(ormandatoryPublish=true
in the connection string) has been added to allow to FuturePublish, Publish, Request or Send to publish with mandatory flag. If mandatory flag is set for publish and a message is impossible to route to any queue, thenEasyNetQ.Producer.PublishReturnedException
is raised.Mandatory Publish
works only ifPublisher Confirms
is on.๐ง Example of a configuration:
using var bus = RabbitHutch.CreateBus("host=localhost;mandatoryPublish=true;publisherConfirms=true")