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(or mandatoryPublish=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, then EasyNetQ.Producer.PublishReturnedException is raised.

    Mandatory Publish works only if Publisher Confirms is on.

    ๐Ÿ”ง Example of a configuration:

    using var bus = RabbitHutch.CreateBus("host=localhost;mandatoryPublish=true;publisherConfirms=true")