I an developing a WCF service where I need to intercept incoming messages for custom validations. After my research, I found that I need to implement IDispatchMessageInspector for this purpose. So, I inserted my custom validations inside AfterReceiveRequest method of the interface.
The problem: When I debug the code, I saw that message reception do not trigger the AfterReceiveRequest method that I have implemented.
The question: Do I need to register my class/method somewhere to trigger when messages are received?