This sample demonstrates the orchestration of the local startup of a Durable Task (i.e. "portable") project backed by the Durable Task Scheduler (DTS) using Aspire.
- Docker (for starting Azure Storage and DTS emulators)
- .NET SDK 10 or later
Open a terminal at the DtsWithAspire host folder and run:
cd AspireHost
dotnet runThe Aspire host should start the application and present a URL to its dashboard:
Using launch settings from /Users/<user>/Source/Azure-Samples/Durable-Task-Scheduler/samples/durable-task-sdks/dotnet/DtsWithAspire/AspireHost/Properties/launchSettings.json...
Building...
info: Aspire.Hosting.DistributedApplication[0]
Aspire version: 13.0.2+8924dc6a494bfb53476657dcbb7a7764edb94b43
info: Aspire.Hosting.DistributedApplication[0]
Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
Application host directory is: /Users/<user>/Source/Azure-Samples/Durable-Task-Scheduler/samples/durable-task-sdks/dotnet/DtsWithAspire/AspireHost
info: Aspire.Hosting.DistributedApplication[0]
Distributed application started. Press Ctrl+C to shut down.
info: Aspire.Hosting.DistributedApplication[0]
Now listening on: https://localhost:17050
info: Aspire.Hosting.DistributedApplication[0]
Login to the dashboard at https://localhost:17050/login?t=b3977d4d86dbb0c83e0d06a2af2440d7Execute a GET request for the Client (client) resource's /start endpoint, using cURL as shown below or the .http file in the Client project folder.
curl -L http://localhost:5020/startFrom the Aspire dashboard, open the details panel for the DTS (dts) resource and browse to its dashboard endpoint and its default taskhub. Select the new orchestration to see its event timeline.