Open manupstairs opened 4 years ago
@manupstairs at the time that MvvmLight was ported to .NET standard, the CommonServiceLocator didn't support .NET Standard so was removed.
By removing compatibility with CommonServiceLocator, unit testing through Moq to return our mocks in case of GetInstance
Hi, I have a question about SimpleIoc. Why is SimpleIoc no longer inherited from IServiceLocator in Std10 version? This will cause compatibility issues with ServiceLocator.
I checked the code, seems we don't need CommonServiceLocator any more. We can use the SimpleIoc directly.
I'm just curious why we needed CommonServiceLocator before. Could you please help to explain?
I would appreciate it if you could help answer this question. Thanks.