Saturday, August 6, 2016

How to Structure Your Xamarin Solution by Adhering to Common .NET Practices - Colombo Xamarin Meetup Presentation

Last month (July 2016) I presented at the Colombo Xamarin Meetup in Sri Lanka, which was the 3rd meetup of the group.

My topic for the meetup presentation was "How to Structure Your Xamarin Solution by Adhering to Common .NET Practices", where we discussed how to use Repository Pattern, Dependency Injection and How to called third party services from apps.

I took the approach of initially having a very simple application with all the code in the code behind file. Then, I showed how step by step you can convert this simple application to use Repository Patter and also apply Dependency Injection (using Autofac DI Container) to minimize the tight coupling of code layers.

Also, we discussed drawbacks of Xamarin Forms default DependencyService approach to implemented platform specific code and how we can use Depencency Injection container (using Autofac) to achieve same functinoality with minimun coupling.

Finally we discussed how we can call third party service API from Xamarin Forms application by taking Sitecore Mobile SDK for Xamarin.


Following are the slide which was used for the presentation




You can find the code that I used for the presentation by following GitHub link




Happy Xamarin! :-)

No comments:

Post a Comment