Reputation: 310
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
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