Friday, 12 June 2015

Vote for my article on codeproject for best Web Dev article of June 2015.

Vote for my article on code project for best Web Dev article of May 2015.


Hi Friends,

It gives me immense pleasure to share that my article (http://www.codeproject.com/Articles/997216/RESTful-Day-sharp-Resolve-dependency-of-dependenci) has been nominated in one of the category "Best Web Dev Article of June 2015" on codeproject.com


You can vote on this articles if it helped you by any means.


Share/Bookmark

Thursday, 11 June 2015

RESTful Day #4: Custom URL Re-Writing/Routing using Attribute Routes in MVC 4 Web APIs

Download Source Code

Introduction

We have already learnt a lot on WebAPI. I have already explained how to create WebAPI, connect it with database using Entity Framework, resolving dependencies using Unity Container as well as using MEF. In all our sample applications we were using default route that MVC provides us for CRUD operations. In this article I’ll explain how to write your own custom routes using Attribute Routing. We’ll deal with Action level routing as well as Controller level routing. I’ll explain this in detail with the help of a sample application. My new readers can use any Web API sample they have, else you can also use the sample applications we developed in my previous articles.

Share/Bookmark

Wednesday, 3 June 2015

RESTful Day #3: Resolve dependency of dependencies using Inversion of Control and dependency injection in ASP.NET Web APIs with Unity Container and Managed Extensibility Framework (MEF)

Download Source Code

Introduction

In my last two articles I explained how to create a RESTful service using ASP.NET Web API working with Entity Framework and resolving dependencies using Unity Container. In this article I’ll explain how to create a loosely coupled system with Unity Container and MEF(Managed Extensibility Framework) using Inversion of Control. I’ll not be explaining much theory but rather focus more on practical implementations. For the readers who are following this series, they can use their existing solution that they have created till time. For my new readers of this article, I have provided the download link for the previous source code and current source code as well.
For theory and understanding of DI and IOC you can follow the following links: Unity and Inversion of Control(IOC).

Roadmap



Share/Bookmark