Client1 will call your first method GetDelayedResponse, while Client2 will call GetDirectResponse: In Client1: instance1.GetDelayedResponse(); In Client2: instance2.GetDirectResponse();如果您同时运行这两个应用程序,您应该会看到 Client2 立即返回,而 Client1 将等待这 8 秒.if you run those two apps simultaneously, you should see that Client2 returns right away, while Client1 will wait for those 8 seconds.如果您有两个完全独立的客户端,并且它们将在服务器上获得一个完全独立的服务实例,则它们彼此完全独立,不会序列化它们的调用,也不会相互阻塞.If you have two totally separate clients, and they will get a totally separate service instance on the server, they are totally independant of one another and won't be serializing their calls and won't be blocking each other. 这篇关于WCF 本身是否支持多线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-15 15:17