I am having problems in canceling background worker immediately, it takes time after cancellation. Actually i am calling web service to download specific data under do_work method and it can take time up to 10 to 20 secs, my requirement is that i have to immediately cancel that thread when user clicks next. On clicking next, next image/video/document will start downloading.
I did one try to get current thread and aborting that, but its dangerous as there can be other thread/background worker running along with this one.
Waiting for Reply,
Muhammad Abdullah Malik