Using Simple Injector with Console Application

Mar 24, 2013 at 6:51 PM
I am wanting to use Simple Injection with a console application. I do not see a specific example for a console application but it looks like with Winforms example will work. Can you confirm this?
Mar 24, 2013 at 8:46 PM
Yes, I can confirm this. You can simply bootstrap the container from within the Main method. However, in contrast to Win Forms, in a Console Application there is no need to 'call back' into the container from within the application. You can simply use constructor injection for all types.

Good luck.
Marked as answer by dot_NET_Junkie on 11/5/2013 at 7:38 AM