Search code examples
wcfwcf-rest-starter-kit

WCF 4.0's analog to WCF REST Starter Kit's RequestInterceptor?


Does WCF 4.0 have an analog class/module/whatever to WCF REST Starter Kit's RequestInterceptor?


Solution

  • There isn't anything which maps 1-1 to it, but you can use an IDispatchMessageInspector from WCF core to implement most of the scenarios for which the RequestInspector would do. The post at http://blogs.msdn.com/b/carlosfigueira/archive/2011/04/19/wcf-extensibility-message-inspectors.aspx has some detailed information about the message inspectors.