Is possible to know which contract has been called in a multiple contract service? In this, case, in the constructor.
The implementing class of the service is like this:
public class Service : IContract1, IContract2
{
public Service()
{
//Identify if constructor was called from IContract1 or IContract2
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…