User-1571110992 posted
Hi Team,
I have two function
Task task1;
Task task2;
Task task3;
global varable
public string Confirm()
{
task1 = Task.Factory.StartNew(() => context.sp_create_summarize_data_temp_table_delete(internal_id));
task2 = task1.ContinueWith(antTask => context.sp_create_summarize_data_temp_table_insert(internal_id));
}
public string UpdateConfirm()
{
task3 = task2.ContinueWith(antTask => context.sp_create_summarize_data_temp_table_delete(internal_id));
Task task4 = task3.ContinueWith(antTask => context.sp_create_summarize_data_temp_table_insert(internal_id));
}
I want to make sure that task1 and task2 should be complete if someone call UpdateConfirm function. call order should be task1 , task2, task3, and task4
Rereads,