Skip to content

Commit 66cac49

Browse files
committed
Whew, add large explanation.
1 parent 3747041 commit 66cac49

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

projects/RabbitMQ.Client/CreateChannelOptions.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public sealed class CreateChannelOptions
4040
{
4141
/// <summary>
4242
/// Enable or disable publisher confirmations on this channel. Defaults to <c>false</c>
43+
///
44+
/// Note that, if this is enabled, and <see cref="PublisherConfirmationTrackingEnabled"/> is <b>not</b>
45+
/// enabled, the broker may send a <c>basic.return</c> response if a message is published with <c>mandatory: true</c>
46+
/// and the broker can't route the message. This response will not, however, contain the publish sequence number
47+
/// for the message, so it is difficult to correlate the response to the correct message. Users of this library
48+
/// could add the <see cref="Constants.PublishSequenceNumberHeader"/> header with the value returned by
49+
/// <see cref="IChannel.GetNextPublishSequenceNumberAsync(System.Threading.CancellationToken)"/> to allow correlation
50+
/// of the response with the correct message.
4351
/// </summary>
4452
public bool PublisherConfirmationsEnabled { get; set; } = false;
4553

0 commit comments

Comments
 (0)