Skip to content

Fix .NET worker cancellation example - #260

Merged
brianstrauch merged 3 commits into
mainfrom
fix/issue-238-dotnet-worker-cancellation
Aug 20, 2026
Merged

Fix .NET worker cancellation example#260
brianstrauch merged 3 commits into
mainfrom
fix/issue-238-dotnet-worker-cancellation

Conversation

@brianstrauch

@brianstrauch brianstrauch commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • pass an infinite-delay task to the .NET worker quick-start example
  • use the Func<Task> overload of TemporalWorker.ExecuteAsync
  • keep the worker running indefinitely without requiring a cancellation token

Validation

  • compiled the complete example with .NET SDK 8.0.424 and Temporalio 1.18.0
  • git diff --check

Closes #238

@brianstrauch
brianstrauch marked this pull request as ready for review August 20, 2026 19:01
@brianstrauch
brianstrauch requested a review from a team as a code owner August 20, 2026 19:01
@brianstrauch
brianstrauch merged commit 67f41f9 into main Aug 20, 2026
2 checks passed
@brianstrauch
brianstrauch deleted the fix/issue-238-dotnet-worker-cancellation branch August 20, 2026 19:18
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.

[Bug] Cancellation token is REQUIRED when starting .NET worker

1 participant