Cancel a RestSharp Request

你。 提交于 2019-12-10 10:24:48

问题


I'm making a wp7 app that uses RestSharp to download some data. I noticed the application guidelines require that I provide a ui element that allows the user to cancel a data transfer. Is it possible to cancel an ExecuteAsync request with rest sharp?


回答1:


ExecuteAsync() returns an RestRequestAsyncHandle which has an Abort() method you can call to kill the request.



来源:https://stackoverflow.com/questions/9216062/cancel-a-restsharp-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!