# DurableTaskSchedulerEmulatorResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Functions](/reference/api/csharp/aspire.hosting.azure.functions.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure.DurableTask`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Functions/DurableTask/DurableTaskSchedulerEmulatorResource.cs)
- Inherits: `ContainerResource`

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).

## Definition

```csharp
namespace Aspire.Hosting.Azure.DurableTask;

public sealed class DurableTaskSchedulerEmulatorResource
    : Aspire.Hosting.ApplicationModel.ContainerResource
{
    // ...
}
```

## Remarks

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

## Constructors

- [DurableTaskSchedulerEmulatorResource(DurableTaskSchedulerResource)](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskscheduleremulatorresource/constructors.md#constructor-durabletaskschedulerresource) -- 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).

## Properties

- [Annotations](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskscheduleremulatorresource/properties.md#annotations) : `ResourceAnnotationCollection` `get`
