Logging every message received in WCF REST
I want to log every message I receive via my wcf rest webservice. Something like overloading an "onmessagereceive" event. Is that possible? I haven't been ab开发者_开发百科le to find anything.
Yes, you can use a message inspector for it. The blog post at http://blogs.msdn.com/b/carlosfigueira/archive/2011/04/19/wcf-extensibility-message-inspectors.aspx has an example on how to do that.
精彩评论