I would like to use interception to add logging in my application without having to fill my code with lines like: "Logger.Log(Something);"
I am aware this is considered a "Cross-cutting concern" which means it can be well handled using Aspect Oriented Programming. I considered the following two options which do not work well for me. 1- Postsharp : Can't be used on community edition 2- Unity Framework : Provides Interface interception, Virtual Methods and inheritance of MarshalByRef . None of these options will work because I can not write a new interface for every class in my project. I can not make all the methods virtual and I can not break the inheritance structure and limit inheritance to MarshalByRef
I might be thinking about the problem the wrong way. Thanks in advance for helping .