# AzureWebPubSubHubResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.WebPubSub](/reference/api/csharp/aspire.hosting.azure.webpubsub.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.WebPubSub/AzureWebPubSubHubResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithParent`, `IResourceWithParent<AzureWebPubSubResource>`, `IValueProvider`, `IValueWithReferences`

Represents an Azure Web PubSub Hub setting resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class AzureWebPubSubHubResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [AzureWebPubSubHubResource(string, AzureWebPubSubResource)](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubhubresource/constructors.md#constructor-string-azurewebpubsubresource) -- Represents an Azure Web PubSub Hub setting resource.
- [AzureWebPubSubHubResource(string, string, AzureWebPubSubResource)](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubhubresource/constructors.md#constructor-string-string-azurewebpubsubresource) -- Represents an Azure Web PubSub Hub setting resource.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubhubresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string template for the manifest for Azure Web PubSub.
- [HubName](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubhubresource/properties.md#hubname) : `string` `get; set` -- Gets the name associated with the Azure Web PubSub Hub.
- [Parent](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubhubresource/properties.md#parent) : [AzureWebPubSubResource](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md) `get` -- Gets the parent AzureWebPubSubResource of this AzureWebPubSubHubSettingResource.
