# AzureMessagingWebPubSubSettings Properties

- Package: [Aspire.Azure.Messaging.WebPubSub](/reference/api/csharp/aspire.azure.messaging.webpubsub.md)
- Type: [AzureMessagingWebPubSubSettings](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings.md)
- Kind: `Properties`
- Members: `6`

Provides the client configuration settings for connecting to Azure Web PubSub.

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.Messaging.WebPubSub/AzureMessagingWebPubSubSettings.cs)

Gets or sets the connection string used to connect to the Web PubSub service.

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

## Remarks

If [AzureMessagingWebPubSubSettings.ConnectionString](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#connectionstring) is set, it overrides [AzureMessagingWebPubSubSettings.Endpoint](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#endpoint) and [AzureMessagingWebPubSubSettings.Credential](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#credential).

## Credential

- Name: `Credential`
- Modifiers: `nullable` `get; set`
- Returns: `TokenCredential?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.Messaging.WebPubSub/AzureMessagingWebPubSubSettings.cs)

Gets or sets the credential used to authenticate to the Web PubSub endpoint.

```csharp
public TokenCredential? Credential { get; set; }
```

## DisableHealthChecks

- Name: `DisableHealthChecks`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.Messaging.WebPubSub/AzureMessagingWebPubSubSettings.cs)

Gets or sets a boolean value that indicates whether the Web PubSub 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/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.Messaging.WebPubSub/AzureMessagingWebPubSubSettings.cs)

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

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

## Endpoint

- Name: `Endpoint`
- Modifiers: `nullable` `get; set`
- Returns: `Uri?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.Messaging.WebPubSub/AzureMessagingWebPubSubSettings.cs)

Gets or sets the endpoint of the Web PubSub service. This is likely to be similar to "https://{name}.webpubsub.azure.com/".

```csharp
public Uri? Endpoint { get; set; }
```

## Remarks

Used along with [AzureMessagingWebPubSubSettings.Credential](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#credential) to establish the connection.

## HubName

- Name: `HubName`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.Messaging.WebPubSub/AzureMessagingWebPubSubSettings.cs)

Gets or sets the name of the hub used.

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