如何从MVC应用程序异步调用WCF服务 [英] How do I call WCF Service Asynchronously from MVC application

查看:76
本文介绍了如何从MVC应用程序异步调用WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在我的应用程序中,我遇到了通过第三方网关发送短信的场景。如果我尝试同步发送短信,则需要花费太多时间。



我的目标是通过不同的线程/通过Web服务发送SMS,这样用户就不必等待SMS发送操作完成。有什么最好的方法来实现这个目标?



在此先感谢您的回复。

Hi,

In my application I came across with a scenario for sending SMS through a third party gateway. If I try to send the SMS syncronously, it is taking too much time.

My goal is to send the SMS in a different thread/through Web service, so the user don't have to wait for the SMS sending operation to be completed. What are the best way to accomplish this?

Thanks in advance for your reply.

推荐答案

关注链接可以帮助你



http://stackoverflow.com/questions/24545985/asp-net-mvc-synchronous-vs-asynchronous-wcf-calls [ ^ ]



http://www.devcurry.com/2013/04 /aspnet-mvc-4-making-asynchronous-calls.html [ ^ ]
Following links may help you

http://stackoverflow.com/questions/24545985/asp-net-mvc-synchronous-vs-asynchronous-wcf-calls[^]

http://www.devcurry.com/2013/04/aspnet-mvc-4-making-asynchronous-calls.html[^]


这篇关于如何从MVC应用程序异步调用WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆