Class RabbitMqPublisherOptions
Configuration options for RabbitMQ message publishers.
public sealed class RabbitMqPublisherOptions
- Inheritance
-
RabbitMqPublisherOptions
- Inherited Members
- Extension Methods
Properties
ConfirmTimeout
Gets or sets the timeout for waiting for publish confirmations.
public TimeSpan ConfirmTimeout { get; set; }
Property Value
- TimeSpan
The confirmation timeout. Default is 5 seconds.
Remarks
If a confirmation is not received within this timeout, a TimeoutException will be thrown.
EnableConfirms
Gets or sets a value indicating whether to enable publisher confirms.
public bool EnableConfirms { get; set; }
Property Value
Remarks
When enabled, the publisher will wait for broker confirmation before returning from publish operations. This provides delivery guarantees but may impact throughput.
MandatoryPublishing
Gets or sets a value indicating whether to enable mandatory publishing.
public bool MandatoryPublishing { get; set; }
Property Value
Remarks
When enabled, unroutable messages will be returned to the publisher instead of being silently discarded.