Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cancel a RestSharp Request

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?

like image 539
ameer Avatar asked Feb 22 '23 13:02

ameer


1 Answers

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

like image 100
John Sheehan Avatar answered Mar 11 '23 12:03

John Sheehan