# DurableTaskHubResource Properties

- Package: [Aspire.Hosting.Azure.Functions](/reference/api/csharp/aspire.hosting.azure.functions.md)
- Type: [DurableTaskHubResource](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskhubresource.md)
- Kind: `Properties`
- Members: `3`

Represents a Durable Task hub resource. A Task Hub groups durable orchestrations and activities. This resource extends the scheduler connection string with the TaskHub name so that clients can connect to the correct hub.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Functions/DurableTask/DurableTaskHubResource.cs#L24)

Gets the connection string expression composed of the scheduler connection string and the TaskHub name.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Parent

- Name: `Parent`
- Modifiers: `get`
- Returns: [DurableTaskSchedulerResource](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskschedulerresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Functions/DurableTask/DurableTaskHubResource.cs#L29)

Gets the parent durable task scheduler resource that provides the base connection string.

```csharp
public DurableTaskSchedulerResource Parent { get; }
```

## TaskHubName

- Name: `TaskHubName`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Functions/DurableTask/DurableTaskHubResource.cs#L34)

Gets the name of the Task Hub. If not provided, the logical name of this resource is returned.

```csharp
public ReferenceExpression TaskHubName { get; }
```
