Search code examples
wcf

How can I get the calling method inside WCF's IDispatchMessageInspector?


I have a method with custom attribute in my service. I want to read the attributes of the calling method on the server side and check if it has that attribute. How can I accomplish this?

Thanks.


Solution

  • I resolved this by simply implementing IParameterInspector instead. As the documentation states, parameter inspector works on operation level.