יום רביעי, ספטמבר 28, 2011

Two days ago I delivered another ASP.NET MVC 3 MSDN session.As usual, we started with the basics to allow engineers not familiar with ASP.NET MVC to understand the major concepts behind it During the second part of the session, I demonstrated several subjects that are considered more advanced such as, Custom Action Result, Custom Model Binder, Custom Metadata Provider and other Custom XXXIn addition, I had the chance to introduce some really nice tools such as Knapsack and ASP.NET Mini Profiler All samples which were presented during the session can be found at my SkyDrive public folders I really enjoyed delivering this...

Using Dependency Injection in ASP.NET MVC 3

יום שישי, נובמבר 12, 2010

ASP.NET MVC 3 RC has improved the way a developer can integrate IoC/DI container into his project. In this post, I will explain the way you can easily integrate 3rd party IoC container into your MVC 3 project. The full sample can be found here Install IoC Container  To begin, you first need to install an implementation of a IoC container. Any implementation will do, for example Microsoft Unity library and Castle Windsor library. Actually, with the presence of the new NuGet package manager it is easy to integrate with both implementation. In this demo I will use Microsoft Unity library but the...