# DurableTaskSchedulerEmulatorResource Constructors

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

Represents the containerized emulator resource for a [DurableTaskSchedulerResource](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskschedulerresource.md). This is used to host the Durable Task scheduler logic when running locally (e.g. with an Azure Functions emulator).

## DurableTaskSchedulerEmulatorResource(DurableTaskSchedulerResource)

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

Represents the containerized emulator resource for a [DurableTaskSchedulerResource](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskschedulerresource.md). This is used to host the Durable Task scheduler logic when running locally (e.g. with an Azure Functions emulator).

```csharp
public sealed class DurableTaskSchedulerEmulatorResource
{
    public DurableTaskSchedulerEmulatorResource(
        DurableTaskSchedulerResource scheduler)
    {
        // ...
    }
}
```

## Parameters

- `scheduler` ([DurableTaskSchedulerResource](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskschedulerresource.md))
  The underlying durable task scheduler resource that provides naming and annotations.

## Remarks

The emulator resource delegates its annotation collection to the underlying scheduler so that configuration and metadata remain consistent across both representations.
