Closed Robertscorp closed 9 months ago
This is now a sub-point of #34, as the implementation of that will handle this requirement
This can be solved by an implementation of IDependencyCollection that is an interface adapter to the dependency injection container.
For example, a ServiceCollectionDependencyCollection can take in a ServiceCollection as a constructor parameter (dependency), and then implement the AddDependency method as adding to the ServiceCollection.
This should be designed in a way to allow custom Lifetimes and a change in the design of Dependency to only allow a single "Implementation" (also an interface that can be used to add the implementation to the DI Container registration interface)