I am building the architecture and I need to define the injection of dependencies.
The idea is to set
unity in a class library project to be able to reuse it (is this possible?)
I have the following structure:
Solution.Core (I define interfaces and models)
Solution.Infrastructure (EF and repository implementation)
Solution.Infrastructure.Service (Implementation of services)
- WEB API
The idea is to create a new project for the injection:
and inject the dependencies in the projects
WebApi that I already have defined.
Is the architecture I'm following correct?
What if I need to use the dependency injection project in one or more
class library in addition to the projects
WebApi ? How can I do it generic?