Question

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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top