Open Robertscorp opened 9 months ago
GetDependency won't be implemented in ServiceCollectionDependencyCollection, which will cause issues for any dependency collections that try to use GetDependency when implementing AddToDependencyCollection if the dependency collection parameter is a ServiceCollectionDependencyCollection
To make building collections faster, consider decorating the IDependencyCollection with a DependencyCollection that caches the dependencies, to make bulk adding dependencies faster.
This could be an extension method - "Batch", which will return a BatchDependencyCollection<TDependencyCollection. The BatchDependencyCollection can have an EndBatch method, which will return the decorated dependency collection.