0
Register Multiple Interface Implementation In LightInject IoCComment enregistrer une implémentation d'interface multiple dans IoC dans MvvmLight?
Comment utiliser Ioc de MvvmLight pour résoudre le problème? J'ai plusieurs DataService (DataService1, DataService2, DataService3 ...). Ils sont tous IDataService et doivent être contactés avec plusieurs ViewModel. Mvvmlight ne peut le faire:
SimpleIoc.Default.Register<IDataService, DataService1>("DataService1Key");
SimpleIoc.Default.Register<IDataService, DataService2>("DataService2Key");
...