Add CancellationToken propagation to IBuildServerClient async methods
Open
@kirill-suspitsin-ext-sefe is already working on this.
Since Jun 10, 2026.
- #607 by @smurugan-sefe — open
enhancement
- Dominant language
- C#
- Stars
- 5
- Forks
- 3
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 14
Description
Background
IBuildServerClient defines async methods (GetBuildsAsync, GetBuildArtifactDownloadUrlAsync, ValidateBuildAsync) but none accept a CancellationToken. Long-running GitHub API calls cannot be cancelled when a request is aborted.
Recommended Approach
- Add
CancellationToken cancellationToken = defaultto all async methods onIBuildServerClient - Pass the token through to all
HttpClientcalls inGitHubActionsBuildServerClient - Pass from ASP.NET controller actions via
HttpContext.RequestAborted - Update
AzureDevOpsBuildServerClientto pass the token to its underlying client
Identified in multi-model review of PR #584 and PR #585
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.