默认情况下,ASMX WebService 或 WCF 或 aspx 页面是异步的吗?
我把自己卷入了一场赌注,我们的不和是关于异步 Web 服务和我上面提到的其他东西。
我在逻辑上认为Web服务默认是同步的,其他人说这是不正确的。 谁对谁错谁能给我解释一下吗?
提前致谢。
I involved my self within a bet, our feud is about - Async WebServices and the other stuff i mentioned above.
I am thinking logically web service by default is sync, the other said that it is not correct.
Who is right or wrong can any one explain it to me?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下,它们都是同步的,但您可以异步编写它们,也可以异步调用它们。您应该始终区分同步/异步调用和同步/异步执行。
同步调用
执行:
这两类异步处理是完全独立的。您可以对同步服务和任何其他组合进行异步调用。
All of them are by default synchronous but you can write all of them asynchronously and you can call all of them asynchronously. You should always differ between synchronous/asynchronous call and between synchronous/asynchronous execution.
Calls
Execution:
These two types of asynchronous processing are completely independent. You can have asynchronous calls to synchronous services and any other combination.