# 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/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/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.
