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.
+3
A:
You need to implement an IDispatchMessageInspector and inject it in the serivce behavior stack.
use IDispatchMessageInspector.AfterReceiveRequest to accept or reject a request.
and
Claudiu
2009-09-03 19:34:26
+1
A:
There's also a really good MSDN "Service Station" article by Aaron Skonnard on Extending WCF with custom behaviors which explains in great detail the various extension points in WCF and how to make best use of them.
Marc
marc_s
2009-09-03 20:20:24