I wanted to know, when WebGet/WebInvoke requests are made in WCF service which built-in events are fired & can I override them? same for sending a response?
In all the events I want to access the Data which is being sent or received.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
best way to do this is:
http://msdn.microsoft.com/en-us/library/system.servicemodel.dispatcher.idispatchmessageinspector.aspx
WCF will invoke your implementation of the dispatch message inspector, after receive request, and before send reply. There you have access to the raw Message instance, you can even modify it if required.