Skip to content

Document FileConfigurationProvider reload-token behavior after ignored load failures - #55313

Open
gewarren with Copilot wants to merge 3 commits into
mainfrom
copilot/fileconfigurationprovider-onreload-fix
Open

Document FileConfigurationProvider reload-token behavior after ignored load failures#55313
gewarren with Copilot wants to merge 3 commits into
mainfrom
copilot/fileconfigurationprovider-onreload-fix

Conversation

Copilot AI commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

In .NET 11 Preview 7, FileConfigurationProvider no longer fires its reload token when Load() fails and OnLoadException ignores the exception. The change affects consumers that treat an ignored load failure as a reload notification.

  • Breaking-change article

    • Documents previous and new behavior, rationale, recommended action, and affected file-based configuration providers.
    • Links to the runtime control-flow fix.
  • Compatibility navigation

    • Adds the article to the .NET 11 Extensions compatibility index and TOC.
source.OnLoadException = context =>
{
    context.Ignore = true;
    // In .NET 11, GetReloadToken() doesn't fire after this ignored failure.
};

Internal previews

File Preview link
docs/core/compatibility/11.md docs/core/compatibility/11
docs/core/compatibility/extensions/11/fileconfigurationprovider-reload-token-load-failure.md docs/core/compatibility/extensions/11/fileconfigurationprovider-reload-token-load-failure
docs/core/compatibility/toc.yml docs/core/compatibility/toc

Copilot AI review requested due to automatic review settings August 5, 2026 17:12

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.

Copilot wasn't able to review any files in this pull request.

Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix FileConfigurationProvider.OnReload not being called on Load failure Document FileConfigurationProvider reload-token behavior after ignored load failures Aug 5, 2026
Copilot AI requested a review from gewarren August 5, 2026 17:19
@gewarren
gewarren marked this pull request as ready for review August 5, 2026 21:44
@gewarren
gewarren requested a review from a team as a code owner August 5, 2026 21:44
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.

[Breaking change]: FileConfigurationProvider.OnReload is not called when Load() fails

3 participants