/// <summary> /// Allows registration of an action that's executed before each task is run. If /// the task setup fails, its task will not be executed but the task teardown will /// be performed. /// </summary> /// <param name="action">The action to be executed.</param> public void TaskSetup(Action <ITaskSetupContext> action) => _host.TaskSetup(action);