The Wayback Machine - https://web.archive.org/web/20210726221759/https://github.com/dotnet/aspnetcore/pull/34740
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw IOE if services accessed after application is built #34740

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

@captainsafia
Copy link
Contributor

@captainsafia captainsafia commented Jul 26, 2021

Fixes #33812.

The referenced issue mentions:

and the various methods on IServiceCollection

But it seems more expedient to just throw the exception on builder.Services. I didn't spot any extension methods on WebApplicationBuilder that access services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment