Monday, June 22 2009
Creating get from cache method using generic func delegate.
Every time I used custom caching in my application I had to write a method, method will return cached version of the object if it’s available otherwise it will populate the cache and return the cached version.
Wednesday, November 05 2008
Create your own light weight IOC container in .NET
There are lots of very good IOC container out there like Spring.Net and Castle Windsor, however the size of those frameworks makes me nervous specially when I have a small project and I do not need all those bells and whistles that comes with those frameworks. Following post will show you how to create and use simple IOC container.
Sunday, November 02 2008
Display Live Data In Silverlight Using ObservableCollection and INotifyPropertyChanged
Articles shows how to use ObservableCollection in combination with an object implementing INotifyPropertyChanged interface to display live data in Silverlight Application.
ObservableCollection is a generic dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed and INotifyPropertyChanged provides PropertyChanged notification to clients when any property value gets changed.
Thursday, October 30 2008
Authorization in ASP.Net MVC using XML Configuration.
Doing authorization in a clean way is always tricky, You want a delicate balance between an extreme abstraction and something like embedding roles in-side your compiled code, I have always preferred simple abstraction either using roles and their corresponding mappings in the database or using simple xml file to store action to role mappings.