Skip to content

Rename IDurableJobContext to IJobRunContext #9798

Merged
ReubenBond merged 3 commits into
dotnet:mainfrom
benjaminpetit:dj/renaming-ctx
Feb 15, 2026
Merged

Rename IDurableJobContext to IJobRunContext #9798
ReubenBond merged 3 commits into
dotnet:mainfrom
benjaminpetit:dj/renaming-ctx

Conversation

@benjaminpetit

@benjaminpetit benjaminpetit commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

Related issue: #9750

Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings November 20, 2025 13:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR renames the interface IDurableJobContext to IDurableJobRun and the implementation class DurableJobContext to DurableJobRun throughout the Orleans durable jobs codebase. This is a refactoring change to improve naming consistency and better reflect the domain concept.

  • Updates the interface, implementation class, and all references across test code, implementation code, and documentation
  • Renames related methods like GetJobContext to GetJobRun and GetFinalJobContext to GetFinalJobRun
  • Updates XML documentation comments to reference the new type names

Reviewed Changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/Tester/DurableJobs/DurableJobTestsRunner.cs Updated test calls to use renamed GetJobRun and GetFinalJobRun methods
test/NonSilo.Tests/ScheduledJobs/InMemoryJobQueueTests.cs Updated list types and mock object creation to use IDurableJobRun
test/Grains/TestGrains/RetryTestGrain.cs Updated field types, method signatures, and return types to use IDurableJobRun
test/Grains/TestGrains/DurableJobGrain.cs Updated dictionary field types and method signatures to use IDurableJobRun
test/Grains/TestGrainInterfaces/IRetryTestGrain.cs Updated interface method return type to use IDurableJobRun
test/Grains/TestGrainInterfaces/IDurableJobGrain.cs Updated interface method return type to use IDurableJobRun
src/Orleans.DurableJobs/ShardExecutor.cs Updated parameter type to use IDurableJobRun
src/Orleans.DurableJobs/README.md Updated documentation examples to use IDurableJobRun in method signatures
src/Orleans.DurableJobs/JobShard.cs Updated interface and implementation to use IDurableJobRun in return types and parameters
src/Orleans.DurableJobs/InMemoryJobQueue.cs Updated class signature, method signatures, and object instantiation to use IDurableJobRun and DurableJobRun
src/Orleans.DurableJobs/IDurableJobReceiverExtension.cs Updated method parameter types to use IDurableJobRun
src/Orleans.DurableJobs/IDurableJobHandler.cs Renamed interface from IDurableJobContext to IDurableJobRun, renamed class from DurableJobContext to DurableJobRun, and updated all documentation references
src/Orleans.DurableJobs/Hosting/DurableJobsOptions.cs Updated function delegate types to use IDurableJobRun
src/Dashboard/Orleans.Dashboard.App/package-lock.json Added "peer": true flags to multiple package entries (unrelated change)
Files not reviewed (1)
  • src/Dashboard/Orleans.Dashboard.App/package-lock.json: Language not supported

Comment thread src/Dashboard/Orleans.Dashboard.App/package-lock.json
Comment thread src/Orleans.DurableJobs/Hosting/DurableJobsOptions.cs Outdated
@benjaminpetit benjaminpetit changed the title Rename IDurableJobContext to IDurableJobRun Rename IDurableJobContext to IJobRunContext Nov 24, 2025
@benjaminpetit benjaminpetit mentioned this pull request Feb 12, 2026
14 tasks
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ReubenBond ReubenBond enabled auto-merge February 15, 2026 22:43
@ReubenBond ReubenBond added this pull request to the merge queue Feb 15, 2026
Merged via the queue into dotnet:main with commit 05053b6 Feb 15, 2026
59 checks passed
rkargMsft pushed a commit to rkargMsft/orleans that referenced this pull request Feb 27, 2026
* Rename IDurableJobContext to IDurableJobRun and update references throughout the codebase

* Rename IDurableJobRun to IJobRunContext and update references across the codebase

* Fix ShardExecutorTests for IJobRunContext rename

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Reuben Bond <reuben.bond@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants