标签: c# wcf interface realproxy
我有几个服务的基本界面。做类似的事情:
private static void Test(IService svc) { var test = svc.GetType(); }
传入从IService继承的远程服务实例时会导致RealProxy Invoke方法被触发。
为什么?
答案 0 :(得分:0)
正如斯图尔特所指出的,这是预期的行为。
https://msdn.microsoft.com/en-us/library/system.runtime.remoting.proxies.realproxy.invoke(v=vs.110).aspx