In the examples on its website, PostSharp has a call pickup demo in the main system assemblies. I tried several times to configure and replicate intercept calls on assemblies. I do not have source code for success.
My approach was simply to target the assembly level attribute to the namespace and method I wanted to target. It never worked for me.
something like:
[assembly: Trace ("MyCategory", AttributeTargetTypes = "My.BusinessLayer. *")]
Am I missing something? Can I not inject my instrumental aspect into the assembly if I donβt have the source dragging on for it? I thought I could do injections at runtime ...
Thanks.
c # aop aspects postsharp
pinvoke
source share