Automatic Properties and Object Initializers

Posted in C#
This post has been read 3481 times
Abstract: Automatic Properties

In this post we will look at some of the new features added in C# 3.0. The first of these will be automatic properties. Automatic properties gives us with a shorthand notation for defining a new property...

Source Code made Open Source

Posted in MPS
This post has been read 2789 times
Abstract: I am now sharing the source code to this site under the Creative Commons License Distribution.

The terms and conditions can be read here . As always the code can be found here.

Happy Coding.

Site Source Available for Download

Posted in MPS
This post has been read 2820 times
Abstract: The source code for this is site is available for download from here.

Here is a list of features that i have implemented.
  1. 3 layered architecture.
  2. MetaWeBlog implementation (Partial) [Have tested with BlogJet].
  3. Provider based design - Pluggable providers [Includes SqlProvider].
  4. File system based Image gallery.
  5. Guestbook.
  7. Complete administration of site.
  8. RSS feeds
  9. Technorati ping.
  10. Caching features for performance.
I would love to hear some feedbacks on the design so that i could better the application in any way possible.


Lazy Loading of Objects

Posted in .NET
This post has been read 2761 times
Abstract: Lazy loading of objects essentially means that the data is loaded only when requested and not when the object instance is created.

For Eg. suppose we have a Blog class which has a blogText property. Now this property can be encapsulated like so...

Logging using Interceptors in Windsor Container

Posted in Castle Project
This post has been read 3964 times
Abstract: The Windsor container gives you a provision of adding behavior to components without having to change the components implementation. For example if you want to log whenever a method is called through your services class say CustomerService, you can assign an Interceptor for this particular component and add behavior when this component is called. Lets see how logging can be achieved for the CustomerService component.

First thing is to create a LogInterceptor.

UrlRewriting Woes

Posted in MPS
This post has been read 7304 times
Abstract: After spending a very long time to build this site, i finally put it in production. The prime reason for the delay was hosting which i was not able to afford up until now.

Well everything seemed to work fine on my dev machine but once i put the code in production, my URL rewriting logic failed. I was using Gaidar Magdanurov's UrlRewiting solution. From what i observed the http module was not picking up on the application load. So as a last minute change i used UrlRewritingNet.UrlRewrite. I did not have to change much of the thing for this to work. Its pretty straight forward to setup and use.

First you have to add a config section...


Random Photo

My Tweets

Top Posts

Source Code

The source code to this site is open-source. You can download the code from here.


Recent Blogs