# DurableTaskSchedulerResource Constructors

- Package: [Aspire.Hosting.Azure.Functions](/reference/api/csharp/aspire.hosting.azure.functions.md)
- Type: [DurableTaskSchedulerResource](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskschedulerresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a Durable Task scheduler resource used in Aspire hosting that provides endpoints and a connection string for Durable Task orchestration scheduling.

## DurableTaskSchedulerResource(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.Functions/DurableTask/DurableTaskSchedulerResource.cs#L15)

Represents a Durable Task scheduler resource used in Aspire hosting that provides endpoints and a connection string for Durable Task orchestration scheduling.

```csharp
public sealed class DurableTaskSchedulerResource
{
    public DurableTaskSchedulerResource(
        string name)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The unique resource name.
