No announcements
Found 2681194 threads
-
3 Votes
httpclient "a task was canceled!
So between this and the timeout "issue" a lot of my connections were being cancelled as the full async operation didn't complete.Answered | 10 Replies | 8326 Views | Created by DanBayley - Sunday, May 22, 2016 1:12 PM | Last reply by Albert_Zhang - Friday, June 3, 2016 5:46 AM -
1 Votes
Cancel the task
Only you know when and how your task can be cancelled, so you will have to write the code to check that and cancel out.Answered | 5 Replies | 3150 Views | Created by NMG1852951 - Thursday, April 12, 2012 6:35 AM | Last reply by Rob Caplan [MSFT] - Thursday, April 19, 2012 10:02 PM -
0 Votes
Cancel the Task
See the documentation with ...Answered | 1 Replies | 802 Views | Created by lctk - Thursday, August 9, 2018 4:51 AM | Last reply by Kareninstructor - Thursday, August 9, 2018 10:19 AM -
0 Votes
Cancelling a Task out of Several tasks
4- The previous steps are all done for all 1000 tasks, so I end up with 1000 cancellation token source that are assigned to each task (one to one).Answered | 4 Replies | 5375 Views | Created by Tamer Yousef - Wednesday, November 24, 2010 4:19 PM | Last reply by Tamer Yousef - Tuesday, December 7, 2010 6:38 PM -
0 Votes
How to cancel a task operation
Then, in the setter of the property, Cancel() the token source.Answered | 6 Replies | 3191 Views | Created by Serge Calderara - Friday, January 18, 2013 1:56 PM | Last reply by Serge Calderara - Saturday, January 19, 2013 8:05 AM -
0 Votes
Unable to Cancel tasks using Cancellation Token in TPL
I need some help on how to handle the AggregationException and Cancelling the tasks.Answered | 2 Replies | 1767 Views | Created by Rajeshlh - Wednesday, January 30, 2013 9:04 PM | Last reply by Bob Shen - Thursday, January 31, 2013 7:05 AM -
4 Votes
Cancelling a task and TaskCancelException
I expect to use tasks and cancellations in many different projects supporting customers.Answered | 5 Replies | 6398 Views | Created by Christian Nagel - Tuesday, July 21, 2009 1:21 PM | Last reply by Christian Nagel - Tuesday, July 21, 2009 8:18 PM -
3 Votes
cancelling a task, two questions
First, the Task will eventually start executing regardless of whether cancellation was requested before the thread pool got around to processing it; if you pass the token as a ...Answered | 1 Replies | 5895 Views | Created by Frédo - Wednesday, November 28, 2012 9:28 AM | Last reply by Stephen Toub - MSFT - Wednesday, November 28, 2012 3:41 PM -
1 Votes
TPL - Cancelling child tasks
Task t2 could be cancelled after the execution in metod Task1 completes and ThrowIfCancelltionRequested wouldn`t help.Answered | 4 Replies | 7520 Views | Created by x_Xander_x - Thursday, February 17, 2011 7:33 AM | Last reply by Shyam Maggo - Monday, April 23, 2012 7:59 PM -
0 Votes
Await and Canceled Task
On the other side it's not real exception - it's only the means used by cancellation infrastructure.Answered | 12 Replies | 13795 Views | Created by Vlada Bodecek - Tuesday, November 2, 2010 6:22 PM | Last reply by Robert8399 - Saturday, December 4, 2010 1:00 AM -
2 Votes
How to cancel a task<T> cooperatively?
So I am firing up a task, store it in a member variable and later want to cancel it.Answered | 5 Replies | 6274 Views | Created by RAB36 - Friday, May 13, 2011 12:45 PM | Last reply by RAB36 - Friday, May 27, 2011 5:40 AM -
0 Votes
How to cancel the operation performed in the Task
If you are uploading big amount of data in single call then cancelling the upload operation may not be possible.Answered | 2 Replies | 1021 Views | Created by 大傻蛋啊 - Tuesday, March 26, 2013 9:42 AM | Last reply by 大傻蛋啊 - Wednesday, March 27, 2013 2:46 AM -
0 Votes
Gridview LoadMoreItemsAsync Tasks Cancel?
if there where several requests for LoadMoreItemsAsync (because a lot of Scrolling) the Tasks are busy...OK that's normal => but I have to be able to cancel those ...Answered | 4 Replies | 1982 Views | Created by juvi123 - Thursday, October 25, 2012 8:53 PM | Last reply by turibbio - Sunday, October 28, 2012 9:40 AM -
0 Votes
Windows Store apps - Tasks cancellation
This is used to cancel tasks.Answered | 1 Replies | 1912 Views | Created by kalel111 - Saturday, September 14, 2013 2:39 AM | Last reply by Thomas Claudius Huber - Saturday, September 14, 2013 9:32 PM -
0 Votes
Returning result from canceled task
All operation canceled exceptions are translated into the returned task being canceled, and the exception gets thrown away.Answered | 5 Replies | 4864 Views | Created by sergunok - Monday, February 14, 2011 7:20 AM | Last reply by Stephen Toub - MSFT - Tuesday, February 15, 2011 5:17 AM -
0 Votes
HttpClient static instance
Why exactlly do you want to use a HttpClient Singleton to make calls to different APIs instead of simply using separate HttpClients in the sections you need them?Answered | 4 Replies | 3481 Views | Created by BENJIMOLA - Tuesday, February 17, 2015 1:48 PM | Last reply by Dave Smits - Monday, February 23, 2015 9:22 AM -
0 Votes
Cancel all running task in class
You can create List<CancellationTokenSource> and in method CancelAllTask() stop all tasks in your list.Answered | 1 Replies | 1403 Views | Created by Dheeraj pk - Wednesday, September 11, 2013 6:10 AM | Last reply by Oleg Kurzov - Wednesday, September 11, 2013 6:38 AM -
0 Votes
Redirect after cancel or approve task
Best Regards, Wendy TechNet Community Support Please remember to mark the replies as answers if they help, and unmark the answers if ...Answered | 5 Replies | 2648 Views | Created by Nisar Fawad - Thursday, August 27, 2015 8:53 PM | Last reply by Wendy DZ - Wednesday, September 2, 2015 9:40 AM -
13 Votes
HttpClient for Windows Phone 8
You should use nuget and get the microsoft httpclient as eitanb states in a post rather than his accepted answer.Answered | 5 Replies | 22931 Views | Created by eitanb - Saturday, February 23, 2013 8:20 AM | Last reply by Choco_Smith - Monday, July 29, 2013 12:10 PM -
0 Votes
Cancelling Running Task without Async and Await
You could put the tasks and cancellation source in static variables.Answered | 4 Replies | 465 Views | Created by ID GO - Monday, November 14, 2016 2:22 PM | Last reply by chilberto - Monday, November 14, 2016 9:19 PM - Items 1 to 20 of 2681194 Next ›
No announcements