# AzureMessagingWebPubSubSettings

- Kind: `class`
- Package: [Aspire.Azure.Messaging.WebPubSub](/reference/api/csharp/aspire.azure.messaging.webpubsub.md)
- Version: `13.3.0`
- Namespace: `Aspire.Azure.Messaging.WebPubSub`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.Messaging.WebPubSub/AzureMessagingWebPubSubSettings.cs)
- Implements: `IConnectionStringSettings`

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

## Definition

```csharp
namespace Aspire.Azure.Messaging.WebPubSub;

public sealed class AzureMessagingWebPubSubSettings
    : Aspire.Azure.Common.IConnectionStringSettings
{
    // ...
}
```

## Constructors

- [AzureMessagingWebPubSubSettings](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/constructors.md#constructor)

## Properties

- [ConnectionString](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#connectionstring) : `string?` `get; set` -- Gets or sets the connection string used to connect to the Web PubSub service.
- [Credential](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#credential) : `TokenCredential?` `get; set` -- Gets or sets the credential used to authenticate to the Web PubSub endpoint.
- [DisableHealthChecks](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#disablehealthchecks) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the Web PubSub health check is disabled or not.
- [DisableTracing](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
- [Endpoint](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#endpoint) : `Uri?` `get; set` -- Gets or sets the endpoint of the Web PubSub service. This is likely to be similar to "https://{name}.webpubsub.azure.com/".
- [HubName](/reference/api/csharp/aspire.azure.messaging.webpubsub/azuremessagingwebpubsubsettings/properties.md#hubname) : `string?` `get; set` -- Gets or sets the name of the hub used.
