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; |