Class RabbitMqMappingContext
RabbitMQ mapping context implementation.
public sealed class RabbitMqMappingContext : IRabbitMqMappingContext
- Inheritance
-
RabbitMqMappingContext
- Implements
- Inherited Members
- Extension Methods
Properties
DeliveryMode
Gets or sets the delivery mode (1 = non-persistent, 2 = persistent).
public byte? DeliveryMode { get; set; }
Property Value
- byte?
Exchange
Gets or sets the exchange name.
public string? Exchange { get; set; }
Property Value
Expiration
Gets or sets the message expiration in milliseconds.
public string? Expiration { get; set; }
Property Value
Headers
Gets all configured headers.
public IReadOnlyDictionary<string, string> Headers { get; }
Property Value
Priority
Gets or sets the message priority (0-255).
public byte? Priority { get; set; }
Property Value
- byte?
ReplyTo
Gets or sets the reply-to queue name.
public string? ReplyTo { get; set; }
Property Value
RoutingKey
Gets or sets the routing key.
public string? RoutingKey { get; set; }
Property Value
Methods
ApplyTo(RabbitMqMessageContext)
Applies this configuration to a RabbitMQ message context.
public void ApplyTo(RabbitMqMessageContext context)
Parameters
contextRabbitMqMessageContextThe context to apply configuration to.
SetHeader(string, string)
Sets a custom header on the message.
public void SetHeader(string key, string value)