开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜