Skip to content

Class RabbitMqTransportOptions

Namespace: Cephalon.Behaviors.Messaging.Options
Assembly: Cephalon.Behaviors.Messaging.dll

Configuration options for the RabbitMQ messaging transport binding.

public sealed class RabbitMqTransportOptions

objectRabbitMqTransportOptions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Gets or sets the dead-letter exchange name for messages that exceed max retry attempts. When null, dead-lettering is disabled.

public string? DeadLetterExchange { get; set; }

string?

Gets or sets the exchange name. When null, uses the default exchange.

public string? ExchangeName { get; set; }

string?

Gets or sets the RabbitMQ broker hostname. Default: “localhost”.

public string HostName { get; set; }

string

Gets or sets the maximum number of delivery attempts before a message is nacked without requeue. Default: 3.

public int MaxRetryAttempts { get; set; }

int

Gets or sets the RabbitMQ password. Default: “guest”.

public string Password { get; set; }

string

Gets or sets the RabbitMQ broker port. Default: 5672.

public int Port { get; set; }

int

Gets or sets the queue name. When null, defaults to the behavior id.

public string? QueueName { get; set; }

string?

Gets or sets the delay in milliseconds between retry attempts. Default: 1000.

public int RetryDelayMs { get; set; }

int

Gets or sets the RabbitMQ user name. Default: “guest”.

public string UserName { get; set; }

string

Gets or sets the RabbitMQ virtual host. Default: ”/”.

public string VirtualHost { get; set; }

string