Skip to content

Comments

Revert "Deprecate IStartupTask and AddStartupTask with warnings"#9784

Merged
ReubenBond merged 1 commit intomainfrom
revert-9763-copilot/deprecate-addstartuptask-and-istartuptask
Nov 18, 2025
Merged

Revert "Deprecate IStartupTask and AddStartupTask with warnings"#9784
ReubenBond merged 1 commit intomainfrom
revert-9763-copilot/deprecate-addstartuptask-and-istartuptask

Conversation

@ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Nov 18, 2025

Reverts #9763

We should wait until we have a better alternative in place. For now, documentation is our best bet. We can add docs to these methods and IStartupTask itself, too.

Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings November 18, 2025 00:09
Copy link
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

This PR reverts the deprecation warnings for IStartupTask and AddStartupTask methods that were previously introduced in PR #9763. The team decided to defer the deprecation until a better alternative is in place, relying on documentation in the meantime.

  • Removes [Obsolete] attributes from IStartupTask interface and all AddStartupTask method overloads
  • Removes the pragma warning suppression from test code that was necessary when these APIs were deprecated
  • Cleans up an unnecessary using System; directive that was only needed for the Obsolete attribute

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Orleans.Runtime/Lifecycle/IStartupTask.cs Removes obsolete attribute from interface and cleans up unused import
src/Orleans.Runtime/Hosting/SiloBuilderStartupExtensions.cs Removes obsolete attributes from all three AddStartupTask method overloads
test/Tester/StartupTaskTests.cs Removes pragma warning suppression that was needed for deprecated APIs

@ReubenBond ReubenBond added this pull request to the merge queue Nov 18, 2025
Merged via the queue into main with commit 8fd2db2 Nov 18, 2025
38 of 42 checks passed
@ReubenBond ReubenBond deleted the revert-9763-copilot/deprecate-addstartuptask-and-istartuptask branch November 18, 2025 05:00
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2025
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.

1 participant