Krzysztof Cygan
Krzysztof Cygan

Reputation: 310

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?

Upvotes: 1

Views: 317

Answers (1)

daryal
daryal

Reputation: 14919

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.

Upvotes: 1

Related Questions