Unity container is a lightweight dependency injection container. It manages creation and resolution of objects that we registered based on life time that we specified. Here is a list of lifetime managers that exist in Unity.
Check out the descent Generic Unit Of Work and Repositories framework. It allows quickly bootstrap your application with Entity Framework. This lightweight framework will also allow you to elegantly, unobtrusively, and easily patternize your applications and systems with Repository, Unit of Work, and Domain Driven Design. To use Generic Repositories or not? The framework allows […]
Earlier I wrote post named “Understanding ASP.NET MVC request process”. In this post we will dive a bit deeper into the lifecycle of an ASP.NET MVC application. A high-level view of the MVC application lifecycle, where you can understand the major stages that every MVC application passes through in the request processing pipeline. That was the […]
How Requests Are Processed by the Thread Pool On the web server, the .NET Framework maintains a pool of threads that are used to service ASP.NET requests. When a request arrives, a thread from the pool is dispatched to process that request. If the request is processed synchronously, the thread that processes the request is […]
You do not need to create Custom View Engine for most projects. The reason for using Custom View Engine is to change the default views location at run-time. The MVC Framework has two built-in view engines – Razor and WebForms. View engines implement IViewEngine interface:
Filters inject extra logic into MVC Framework request processing. They provide a simple and elegant way to implement cross-cutting concerns. This term refers to functionality that is used all over an application and doesn’t fit neatly into any one place, where it would break the separation of concerns pattern. Classic examples of cross-cutting concerns are […]
On the client: Cookie On the server: Cache (make sure to use user specific key to avoid collisions) Some back-end storage (such as a database) ASP.NET Session ViewData – dictionary that accessible by string keys ViewBag – ViewData wrapper that allows to create dynamic properties. In addition we can use TempData that is basically dictionary that […]