c# - Identify on which Contract was a WCF service called -


my question is: possible know wich contract has been called in multiple contract service? in this, case, in constructor.

the implementing class of service this:

public class service : icontract1, icontract2 {     public service()     {         //identify if constructor wass called icontract1 or icontract2     } } 

thanks in advance!

i think want implement wcf message inspector. messageinspector "message filter" can intercept , inspect messages coming in or going out of service layer infrastructure.

on server, implement idispatchmessageinspector interface.

here pretty example:

http://www.aspnet4you.com/wcf/index.php/2013/01/30/message-interception-auditing-and-logging-at-wcf-pipeline/


Comments