Skip to content

Undo the change to make the IServiceProvider in Configure scoped #4148

Closed
@davidfowl

Description

@davidfowl

Turns out people were capturing the IServiceProvider here to store in statics. Initially this change was made to make running EF migrations easier but then that pattern was moved into Program.Main. We've had several reports about this breaking things so we should consider reverting it.

Here's the initial change:
aspnet/Hosting#1106

We can consider this for a later patch as well.

Metadata

Metadata

Assignees

Labels

area-hostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions