Is there a lifecycle that WCF requests go through? Specifically I need to be able to intercept and possibly cancel requests made before they get to the method that was invoked.
You need to implement an IDispatchMessageInspector and inject it in the serivce behavior stack.
use IDispatchMessageInspector.AfterReceiveRequest to accept or reject a request.
see: http://msdn.microsoft.com/en-us/library/system.servicemodel.dispatcher.idispatchmessageinspector.aspx
and
http://www.codeproject.com/KB/WCF/WCFIPfilter.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With