What really interceptors do with my c# class?
I was asked to implement castle dynamic proxy in my asp.net web application and i was going through couple of articles which i got from Castle Project and Code Project about castle dynamic proxy in asp.net web application.... Both articles delt with creating interceptors but i can't get the idea why interceptors are used with classes.... Why should i intercept my class which is behaving properly? Aaronaught Let's say that your class needs to do 3 things for a certain operation: Perform a security check; Log the method call; Cache the result. Let's further assume that your class doesn't know