Table of Contents

Class RabbitMQConnectionOptions

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

Connection configuration options for RabbitMQ transport.

public sealed class RabbitMQConnectionOptions
Inheritance
RabbitMQConnectionOptions
Inherited Members
Extension Methods

Remarks

Groups all connection-related settings: host, port, virtual host, credentials, connection string, and SSL configuration. Follows Azure.Messaging.ServiceBus.ServiceBusClientOptions sub-options pattern.

Properties

AutomaticRecoveryEnabled

Gets or sets a value indicating whether automatic connection recovery is enabled.

public bool AutomaticRecoveryEnabled { get; set; }

Property Value

bool

true to recover the connection automatically after a network failure; otherwise, false. Default is true.

ConnectionString

Gets or sets the connection string (alternative to individual connection properties).

[JsonIgnore]
public string? ConnectionString { get; set; }

Property Value

string

The AMQP connection string, or null to use individual properties.

HostName

Gets or sets the RabbitMQ host name.

public string HostName { get; set; }

Property Value

string

The host name. Default is "localhost".

NetworkRecoveryInterval

Gets or sets the interval between network recovery attempts.

public TimeSpan NetworkRecoveryInterval { get; set; }

Property Value

TimeSpan

The recovery interval. Default is 10 seconds.

Password

Gets or sets the password for authentication.

[JsonIgnore]
public string Password { get; set; }

Property Value

string

The password. Default is "guest".

Port

Gets or sets the RabbitMQ port.

public int Port { get; set; }

Property Value

int

The port number. Default is 5672.

Ssl

Gets the SSL configuration options.

public RabbitMQSslOptions Ssl { get; }

Property Value

RabbitMQSslOptions

The SSL options.

UseSsl

Gets or sets a value indicating whether SSL/TLS is enabled.

public bool UseSsl { get; set; }

Property Value

bool

true if SSL is enabled; otherwise, false.

Username

Gets or sets the username for authentication.

public string Username { get; set; }

Property Value

string

The username. Default is "guest".

VirtualHost

Gets or sets the virtual host.

public string VirtualHost { get; set; }

Property Value

string

The virtual host. Default is "/".