# RabbitMQClientSettings Properties

- Package: [Aspire.RabbitMQ.Client](/reference/api/csharp/aspire.rabbitmq.client.md)
- Type: [RabbitMQClientSettings](/reference/api/csharp/aspire.rabbitmq.client/rabbitmqclientsettings.md)
- Kind: `Properties`
- Members: `5`

Provides the client configuration settings for connecting to a RabbitMQ message broker.

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.RabbitMQ.Client/RabbitMQClientSettings.cs)

Gets or sets the connection string of the RabbitMQ server to connect to.

```csharp
public string? ConnectionString { get; set; }
```

## DisableAutoActivation

- Name: `DisableAutoActivation`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.RabbitMQ.Client/RabbitMQClientSettings.cs)

Gets or sets a boolean value that indicates whether auto activation is disabled or not.

```csharp
public bool DisableAutoActivation { get; set; }
```

## Remarks

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

- Name: `DisableHealthChecks`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.RabbitMQ.Client/RabbitMQClientSettings.cs)

Gets or sets a boolean value that indicates whether the RabbitMQ health check is disabled or not.

```csharp
public bool DisableHealthChecks { get; set; }
```

## DisableTracing

- Name: `DisableTracing`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.RabbitMQ.Client/RabbitMQClientSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.

```csharp
public bool DisableTracing { get; set; }
```

## MaxConnectRetryCount

- Name: `MaxConnectRetryCount`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.RabbitMQ.Client/RabbitMQClientSettings.cs)

Gets or sets the maximum number of connection retry attempts.

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

```csharp
public int MaxConnectRetryCount { get; set; }
```
