Hi i have solution with oround 20 projects. My boostrap.cs file is located in UI. I had to add console application which will run as service so not in the contex of UI. This new console application has no idea about boostrap configuration and I would rather ovoid to create all instances manually. Is there any good approach to resolve this? Or kind of sharing bosstrap.cs across multiple projects?
1 Answer
You want to reuse the Composition Root, but you shouldn't.
(This is a Dependency Injection FAQ.)