ANN: TraceHook.NET context atribute for call tracing
I've just released TraceHook.NET, a CLR context attribute that can be used
to declaratively add call tracing to any (context-bound) class (Think of it
as the .NET version of the original COM TraceHook that Chris Sells &
Simon Fell wrote). Adding tracing to your own classes is trivial - derive
off
ContextBoundObject, add a [TraceHook] attribute to the class, and you're off
& tracing!
Full source is included in the distribution, so it's also an interesting
example of how to use the interception stuff in the CLR. The cool part is
that the entire thing is under 250 lines of C# source, with verbose
comments. As Don Box said earlier in a post on the DOTNET list, context
attributes are very cool!
Check it out at http://www.razorsoft.net/tracehook.htm
As always, comments/suggestions welcome!
--Peter
http://www.razorsoft.net

