简体   繁体   中英

How to intercept any WCF/Ria Service call on client?

I want to intercept any calls to a Ria Service in Silverlight, so that I can then show a loader. Is it possible through some WCF Api or do I have to write my own solution?

You can create a partial class of you context class and in the OnCreated partial method add some client side behavior like IClientMessageInspector which provides BeforeSendRequest and AfterReceiveReply methods.

Refer to this question or this blog post .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM