How to Register Multiple Interface Implementation In IoC in MvvmLight?
问题 Register Multiple Interface Implementation In LightInject IoC How to use MvvmLight's Ioc to solve the problem? I have multiple DataService (DataService1, DataService2, DataService3 ...). They are all IDataService and need to be contacted with multiple ViewModel. Mvvmlight can't do it: SimpleIoc.Default.Register<IDataService, DataService1>("DataService1Key"); SimpleIoc.Default.Register<IDataService, DataService2>("DataService2Key"); ... 回答1: You can also use 'class' key identifiers in