better Ioc?

Jun 17, 2011 at 4:19 AM

I prefer letting the IOC container push dependencies to class instance, it seems Catel so far have to pull dependencies from IOC by using GetService<T>() method.

Am i right?

Coordinator
Jun 17, 2011 at 7:56 AM

It is possible to inject services into the view model. There are overloads that accept a services argument. If you inject the services, the IoC container will not be used but the injected services will be.

We are currently investigating the implementation of a ServiceLocator to let a developer use it's own IoC solution. Expected to be included in 2.0