Tag Archives: c#

Building better ( hopefully! ) RESTful APIs

The idea for this article came while I was at work. I was talking to an Api provider and he had some very strong ideas on how things should be done. I have built a few APIs myself and suffice … Continue reading

Posted in Code | Tagged , , , | Leave a comment

Xamarin – Rest Services PCL

Xamarin – Rest Services from a PCL I see this on a daily basis especially on the Xamarin forums. How do I use this service from an iOS app? an Android app? a Windows app? How do I write a … Continue reading

Posted in Code | Tagged , , , , , | 3 Comments

PCL Rpg engine – part 1 – actors and gear

I can see people wonder …. why would you bother ? Don’t we have enough engines already? Well, yes, but how many have you written so far ? Have you tried writing one? It is really really fun to work … Continue reading

Posted in Code | Tagged , , , | Leave a comment

Xamarin IOS – authentication using Owin, Web Api2, Json Web Tokens

This article continues the work done in a previous article : Authorization system with Owin, Web Api, Json Web Tokens. We saw how to build an Authorization system based on Owin, Web Api and Json tokens. Next we want to see … Continue reading

Posted in Code | Tagged , , , , | 8 Comments

Authorization system with Owin, Web Api, Json Web Tokens

Authorization system with Owin, Web Api, Json Web Tokens Intent What we want to accomplish here is to create a reusable authentication system using Json Web Tokens ( Jwt ), Owin and Web Api. Let’s start by clearly specifying the … Continue reading

Posted in Code | Tagged , , , , , | 11 Comments

Separation of concerns – Application Layers

This isn’t meant to be a guide. It is meant to show how I like to structure my applications and get some feedback, maybe there is a better or cleaner approach or maybe I don’t go far enough. The project … Continue reading

Posted in Code | Tagged , , , , | 3 Comments

Mvc Basics Part 3

it is time to learn a bit more so let’s see how we can build a form, add some validation and post back the user input. If you need to revisit the concepts we covered already, here they are : … Continue reading

Posted in Code | Tagged , , | Leave a comment

Mvc Basics Part 2

Welcome to the part 2 of this tutorial. if you need to read the first part, you can find it here : Mvc Basics Part 1 In Part 2  we will look at Models / Routes in order to get … Continue reading

Posted in Code | Tagged , , | Leave a comment

Mvc Basics Part 1

The purpose of this article is to explain the basics of MVC. Hopefully it will help start with this pattern, in Dot Net, should you never used it before. What is MVC ? Mvc comes from Model View Controller. This … Continue reading

Posted in Code | Tagged , , | Leave a comment

Dependency Injection

Why is it useful and how we can implement it ? By applying DI ( Dependency injection )  we avoid creating a hard-coded dependency in our classes. For example, let’s consider the situation where we implement a simple logging system … Continue reading

Posted in Code | Tagged , , | 4 Comments