My understanding of having everying abstracted to interface (etc IServiceFactory) is allowing customization.
But in the Scope constructor, it casts the ServiceFactor from IServiceFactory to ServiceContainer. Makes the interface IServiceFactory pointless, because there's no way to implement customized IServiceFactory anymore.
|
serviceFactory = (ServiceContainer)scopeManager.ServiceFactory; |
My understanding of having everying abstracted to interface (etc IServiceFactory) is allowing customization.
But in the Scope constructor, it casts the ServiceFactor from IServiceFactory to ServiceContainer. Makes the interface IServiceFactory pointless, because there's no way to implement customized IServiceFactory anymore.
LightInject/src/LightInject/LightInject.cs
Line 6667 in 476a36a