I am using PostSharp - OnMethodBoundaryAspect in OperationContract. The aspect doesnt seem to fire though. I have the necessary reference to postsharp dll. Pseudo code below.
Aspect
[Serializable]
[MulticastAttributeUsage(MulticastTargets.Method, Inheritance = MulticastInheritance.Multicast)]
public class LoggingAspect : OnMethodBoundaryAspect
{
//Implementation for entry and exit
}
Usage
[ServiceContract]
public interface ITest
{
[OperationContract]
[LoggingAspect(.....)]
void Test();
}
Any help is deeply appreciated
We need to do the following
Thanks AlexD and Daniel Balas for the inputs