I am starting wpf tasks with the way below
var newTask = Task.Factory.StartNew(() =>
{
fcStartSubPageCrawl(srMainSiteURL, srMainSiteId);
}).ContinueWith((t) =>
{
var aggException = t.Exception.Flatten();
foreach (var exception in aggException.InnerExceptions)
csPages.LogException(exception.ToString());
},
TaskContinuationOptions.OnlyOnFaulted);
Now when i check the task status
like this (new tasks assigned to task list) :
if (tskLocalTaskList[i].IsCompleted == false)
I am seeing that task status = WaitingForActivation
what does this mean ? And why it is waiting activation ?
C# 4.0 WPF
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…