Forum Discussion
WhiteEagle5150
Aug 08, 2025Copper Contributor
Creating a pooled resource for Dependency Injection
Currently, we have AddSingleton(), AddScoped(), and AddTransient() to generate resources in DI.
Is there a way to request a new feature for an AddPooled() which will allow us to create and reuse unused instances from a pool?
I have a class that has an expensive creation (a little over 5 seconds) that cannot be instantiated as a singleton. I don't need it to maintain any state, so it would be an ideal candidate for a pooled resource in DI.
No RepliesBe the first to reply