Use ITaskManager instead of TaskManager.