Table of Contents

Class RabbitMqMappingContext

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.dll

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

string

Expiration

Gets or sets the message expiration in milliseconds.

public string? Expiration { get; set; }

Property Value

string

Headers

Gets all configured headers.

public IReadOnlyDictionary<string, string> Headers { get; }

Property Value

IReadOnlyDictionary<string, string>

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

string

RoutingKey

Gets or sets the routing key.

public string? RoutingKey { get; set; }

Property Value

string

Methods

ApplyTo(RabbitMqMessageContext)

Applies this configuration to a RabbitMQ message context.

public void ApplyTo(RabbitMqMessageContext context)

Parameters

context RabbitMqMessageContext

The context to apply configuration to.

SetHeader(string, string)

Sets a custom header on the message.

public void SetHeader(string key, string value)

Parameters

key string

The header key.

value string

The header value.