Getting notified when a method is called
-
Hello, is there a generic way to "get informed when a method is called or left". I know I could enter code at the start and end of every method but I would prefer an automated way. Any ideas?
-
Hello, is there a generic way to "get informed when a method is called or left". I know I could enter code at the start and end of every method but I would prefer an automated way. Any ideas?
-
Thats not what I want. Lets assume I want to log every action of a set of classes. I want a mechansim to make a log entry on every call to a property or method in those classes, without firing events everywhere by myself.
-
Hello, is there a generic way to "get informed when a method is called or left". I know I could enter code at the start and end of every method but I would prefer an automated way. Any ideas?
The only generic way to do this is implement the ICorProfilerCallback interface, provided by the runtime. That said, I have never been able to figure it out either. Search on gotdotnet for CLR Profiler 2.0, that mite provide some help as the source is available. top secret xacc-ide 0.0.1