WCF调用与常规方法调用之间的区别
问题描述:
WCF调用和常规方法调用之间有什么区别?
What''s the difference between a WCF call and a regular method call?
答
一个简单的解释是,在WCF上调用WCF方法主机(通常是远程服务器). Visual Studio和C#通过为您生成代理类,使您可以轻松地做到这一点.因此,您在本地代理类上调用了一个方法(它将调用WCF服务上的实际调用).
A simplistic explanation would be that the WCF method is invoked on the WCF host machine (typically a remote server). Visual Studio and C# allow you to do this easily by generating proxy classes for you. So you invoke a method on the local proxy class (and it will invoke the actual call on the WCF service).