Skip to content

ObjectPoolProvider removed from the default set of dependencies added in the WebHostBuilder #14736

Closed
@JunTaoLuo

Description

@JunTaoLuo

ObjectPoolProvider removed from the default set of dependencies added in the WebHostBuilder

As part of making ASP.NET Core more pay for play, the ObjectPoolProvider was removed from the main set of dependencies. Specific components relying on ObjectPoolProvider now add it themselves.

If your component requires ObjectPoolProvider, it will be need to be added to your dependencies via the IServiceCollection.

For discussion, please use dotnet/aspnetcore#5944

Version introduced

3.0

Old behavior

WebHostBuilder provides ObjectPoolProvider by default in the DI container.

New behavior

WebHostBuilder no longer provides ObjectPoolProvider by default in the DI container.

Reason for change

This change was made to make ASP.NET Core more pay for play.

Recommended action

For anyone relying on ObjectPoolProvider, you should add them to your dependencies via the IServiceCollection.

Category

  • ASP.NET Core

Affected APIs

"Not detectable via API analysis"


Issue metadata

  • Issue type: breaking-change

Metadata

Metadata

Assignees

Labels

breaking-changeIndicates a .NET Core breaking change

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions