My first Smartphone was Symbian based Nokia 3650, followed by dozen Windows Mobile devices like HTC Magician, HTC TyTn and HTC Touch. After Nokia’s great 3650, the iPhone 3G was my second attempt to run on a non Windows Mobile device. Although it was beautiful experience, one must admit, that iOS was at this time really laggy. So I switched again –
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 applicable to any IoC Container.
Some things I’m excited about, some things I’m less excited about. This sentence, which perfecty represents what I’m feeling is an allusion to Joes Belfiore’s short statement to the question about possibility of Nokia using Android. In the beginning were rumors and at the end is the bitter reality.