Home
Gallery
GuestBook
SourceCode
Contact

Logging using Interceptors in Windsor Container

Posted in Castle Project
This post has been read 737 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.




Subscribe

Random Photo

My Tweets


Top Posts

Source Code

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

Categories


Recent Blogs


Archives


Blogroll