Xamarin and Autofac: How DependencyService and Dependency Injection are working together

added by Anton Kalcik
2/9/2016 8:53:47 PM

894 Views

The Xamarin.Forms includes DependencyService to help shared code to resolve platform specific implementation. The important thing here is that DependencyService isn't replace for Dependency Injection container. DependencyService is rather service locator than IoC container. I will show you how they can work together. Although I'm using Autofac as IoC, the proposed design and architecture should be...


0 comments