Skip to content

Fix LargePayload sample build: rename ExternalizeThresholdBytes to ThresholdBytes#308

Merged
torosent merged 1 commit into
mainfrom
fix/largepayload-threshold-bytes-api
May 14, 2026
Merged

Fix LargePayload sample build: rename ExternalizeThresholdBytes to ThresholdBytes#308
torosent merged 1 commit into
mainfrom
fix/largepayload-threshold-bytes-api

Conversation

@torosent
Copy link
Copy Markdown
Collaborator

@torosent torosent commented May 14, 2026

Why

Build DTS - LargePayload is currently failing on main and on every open PR (e.g. PR #307 run) with:

error CS1061: 'LargePayloadStorageOptions' does not contain a definition for 'ExternalizeThresholdBytes'

In Microsoft.DurableTask.Extensions.AzureBlobPayloads, LargePayloadStorageOptions.ExternalizeThresholdBytes was renamed to ThresholdBytes starting in v1.23.3.

Dependabot's nuget-all group bump (PR #287) raised the sample's reference from 1.21.0 → 1.24.1 on main, but did not update the source to use the new property name. This PR fills that gap.

What

  • samples/durable-task-sdks/dotnet/LargePayload/Program.cs: rename the single SDK option assignment from ExternalizeThresholdBytes to ThresholdBytes.

No .csproj change — package versions on main already expose the new API.

Verification

$ dotnet build samples/durable-task-sdks/dotnet/LargePayload/LargePayload.csproj
Build succeeded.
    0 Warning(s)
    0 Error(s)

Once this lands on main, the existing Dependabot PRs (including #307) will be unblocked on the next CI run.

Copilot AI review requested due to automatic review settings May 14, 2026 15:45
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>
@torosent torosent force-pushed the fix/largepayload-threshold-bytes-api branch from 4aa1af0 to 97e5157 Compare May 14, 2026 15:47
@torosent torosent changed the title Fix LargePayload sample build: use ThresholdBytes API Fix LargePayload sample build: rename ExternalizeThresholdBytes to ThresholdBytes May 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a CI build failure in the LargePayload .NET sample by updating the SDK option name to match the renamed API in Microsoft.DurableTask.Extensions.AzureBlobPayloads v1.23.3+ (ExternalizeThresholdBytesThresholdBytes), and bumping package versions accordingly.

Changes:

  • Rename options.ExternalizeThresholdBytes to options.ThresholdBytes in Program.cs.
  • (Per PR description) Bump Microsoft.DurableTask.* packages to 1.24.2 and Azure.Identity to 1.21.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@torosent torosent merged commit 4823754 into main May 14, 2026
9 checks passed
@torosent torosent deleted the fix/largepayload-threshold-bytes-api branch May 14, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants