4

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?

ameer
  • 2,598
  • 2
  • 21
  • 36

1 Answers1

8

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

John Sheehan
  • 77,456
  • 30
  • 160
  • 194