Note:
I used to be very negative about introducing this functionality.
One of the reasons I created VContainer was because I wanted a constraint to prevent DI abuse.
The main reason for adding this now is because of the library I'm creating.
container.Register(c => ...) I needed to hide the instantiation when registering styles.
Add IObjectResolver.CreateInstance().
Note: I used to be very negative about introducing this functionality. One of the reasons I created VContainer was because I wanted a constraint to prevent DI abuse.
The main reason for adding this now is because of the library I'm creating.
container.Register(c => ...)
I needed to hide the instantiation when registering styles.