中止ASP.NET Web服务的异步调用 [英] Aborting an ASP.NET Web Service asynchronous call

查看:199
本文介绍了中止ASP.NET Web服务的异步调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web服务,这需要相当长的一段时间来完成执行,我异步调用这个Web服务。我也想实现一个中止功能,这将中止Web服务方法。目前,我观察到,即使我处理请求的Web服务对象,Web服务完成它在服务器端执行反正。我如何实现中止功能?

I have a web service which takes quite some time to complete execution, and i am calling this web service asynchronously. I also want to implement an Abort functionality which will abort the web service method. Currently, i am observing that even if I dispose the requesting Web Service object, the web service completes it's execution in the server side anyways. How do i achieve an Abort functionality?

推荐答案

在调用Web服务代理对象本身的中止()方法。不要简单地处理它。

you call the Abort() method on the web service proxy object itself. don't simply dispose of it.

这篇关于中止ASP.NET Web服务的异步调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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