You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
manupstairs
changed the title
SimpleIoc is no longer inherited from IServiceLocator.
SimpleIoc is no longer inherited from IServiceLocator in Std10 version.
Sep 13, 2020
By removing compatibility with CommonServiceLocator, unit testing through Moq to return our mocks in case of GetInstance is now not possible. We used to be able to mock the GetInstance<> returns via CommonServiceLocator. Is there any word on when this functionality will be changed back? Or do you have suggestions on how to do this with the current implementation?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: