# DurableTaskSchedulerResource

- 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/DurableTaskSchedulerResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithEndpoints`, `IValueProvider`, `IValueWithReferences`

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

## Definition

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

public sealed class DurableTaskSchedulerResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [DurableTaskSchedulerResource(string)](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskschedulerresource/constructors.md#constructor-string) -- Represents a Durable Task scheduler resource used in Aspire hosting that provides endpoints and a connection string for Durable Task orchestration scheduling.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskschedulerresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the expression that resolves to the connection string for the Durable Task scheduler.
- [IsEmulator](/reference/api/csharp/aspire.hosting.azure.functions/durabletaskschedulerresource/properties.md#isemulator) : `bool` `get` -- Gets a value indicating whether the Durable Task scheduler is running using the local emulator (container) instead of a cloud-hosted service.
