AOP logging
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Dear All, I am trying to log the methods using Aspect oriented progamming ( AOP) and custom attributes. Use a class derived from ContextBoundObject with a custom attribute. IMessageSink and IContextProperty are aslo implemented to catch the sink messages. This sample worked fine. But the problem is the this custom attributes work on class level only( i have already tried AttributeTargets.Method). So all methods will be logged. but i want only selected method by giving the attribute on methods. Thanks