From 97e51573d167422abe765da726b0a05df28c96b0 Mon Sep 17 00:00:00 2001 From: torosent <17064840+torosent@users.noreply.github.com> Date: Thu, 14 May 2026 08:44:43 -0700 Subject: [PATCH] Fix LargePayload sample build: use ThresholdBytes API The Microsoft.DurableTask.Extensions.AzureBlobPayloads package renamed LargePayloadStorageOptions.ExternalizeThresholdBytes to ThresholdBytes in version 1.23.3. The sample was pinned to 1.21.0 (which exposed the old name), but CI is resolving a newer version, causing 'Build DTS - LargePayload' to fail with CS1061 on main and on every open PR. - Bump Microsoft.DurableTask.{Client,Worker}.AzureManaged and Microsoft.DurableTask.Extensions.AzureBlobPayloads from 1.21.0 to 1.24.2 (latest stable) so the package versions match the API the source code uses. - Bump Azure.Identity from 1.18.0 to 1.21.0 to satisfy the new transitive constraint from Microsoft.DurableTask.Client.AzureManaged 1.24.2 (otherwise NU1605 fires). - Rename the single SDK option assignment from ExternalizeThresholdBytes to ThresholdBytes to match the new API surface. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- samples/durable-task-sdks/dotnet/LargePayload/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/durable-task-sdks/dotnet/LargePayload/Program.cs b/samples/durable-task-sdks/dotnet/LargePayload/Program.cs index 4575e1cd..c8c394fa 100644 --- a/samples/durable-task-sdks/dotnet/LargePayload/Program.cs +++ b/samples/durable-task-sdks/dotnet/LargePayload/Program.cs @@ -53,7 +53,7 @@ builder.Services.AddExternalizedPayloadStore(options => { - options.ExternalizeThresholdBytes = externalizeThresholdBytes; + options.ThresholdBytes = externalizeThresholdBytes; options.ContainerName = payloadStorageSettings.ContainerName; if (!string.IsNullOrWhiteSpace(payloadStorageSettings.ConnectionString))