Skip to content
Docs Try Aspire

RabbitMQClientSettings Properties

Class Properties 5 members
Provides the client configuration settings for connecting to a RabbitMQ message broker.
ConnectionString Section titled ConnectionString nullable string?
Gets or sets the connection string of the RabbitMQ server to connect to.
public string? ConnectionString { get; set; }
DisableAutoActivation Section titled DisableAutoActivation bool
Gets or sets a boolean value that indicates whether auto activation is disabled or not.
public bool DisableAutoActivation { get; set; }
When auto activation is enabled, the RabbitMQ connection is established at startup time rather than on first use, which prevents blocking threads when the connection is first requested from the DI container.
DisableHealthChecks Section titled DisableHealthChecks bool
Gets or sets a boolean value that indicates whether the RabbitMQ health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }
MaxConnectRetryCount Section titled MaxConnectRetryCount int

Gets or sets the maximum number of connection retry attempts.

Default value is 5, set it to 0 to disable the retry mechanism.

public int MaxConnectRetryCount { get; set; }