Closed pomianowski closed 4 months ago
I thought about that at first too. However, in terms of the number of lines, it's not much different from inserting it into the ServiceProvider. So I don't really think it's become that much easier. Considering that, I think the drawback of adding a custom type outweighs the benefits.
Proposal
Create a simple builder pattern in a separate package to make building a console application using DI easier.
Sample