public void StartTasks() { var tasks = taskFactory.GetTaskInstances(); foreach (var task in tasks) { task.Start(); } }