Skip to content
DocsTry Aspire
DocsTry

RabbitMQClientSettings Properties

ClassProperties5 members
Provides the client configuration settings for connecting to a RabbitMQ message broker.
ConnectionStringSection titled ConnectionStringnullablestring?
Gets or sets the connection string of the RabbitMQ server to connect to.
public string? ConnectionString { get; set; }
DisableAutoActivationSection titled DisableAutoActivationbool
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.
DisableHealthChecksSection titled DisableHealthChecksbool
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; }

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; }