FRBDK/Glue/Glue/Tasks/TaskManager.cs
/// <summary>
/// Adds an action to be executed, guaranteeing that no other actions will be executed at the same time as this.
/// Actions added will be executed in the order they were added (fifo).
/// </summary>
/// <param name="action">The action to execute.</param>
/// <param name="displayInfo">The details of the task, to de bisplayed in the tasks window.</param>
/// <param name="isHighPriority">Whether to attempt to run the action immediately - useful for UI tasks</param>
Adds an action to be executed, guaranteeing that no other actions will be executed at the same time as this.
Actions added will be executed in the order they were added (fifo).
Adds an action to be executed guaranteeing that no other actions will be executed at the same time as this . Actions added will be executed in the order they were added ( fifo ) .
public void AddSync(Action action, string displayInfo, bool isHighPriority)
        {
            TaskExecutionPreference executionPreference = TaskExecutionPreference.Fifo;
            if(isHighPriority)
            {
                executionPreference = TaskExecutionPreference.Asap;
            }
            Add(action, displayInfo, executionPreference);
        }
public void AddSync ( Action action , string displayInfo , bool isHighPriority ) { TaskExecutionPreference executionPreference = TaskExecutionPreference . Fifo ; if ( isHighPriority ) { executionPreference = TaskExecutionPreference . Asap ; } Add ( action , displayInfo , executionPreference ) ; }
Adds an action to be executed, guaranteeing that no other actions will be executed at the same time as this.
Adds an action to be executed guaranteeing that no other actions will be executed at the same time as this .
action
Action
The action to execute.
The action to execute .
displayInfo
string
The details of the task, to de bisplayed in the tasks window.
The details of the task to de bisplayed in the tasks window .
isHighPriority
bool
Whether to attempt to run the action immediately - useful for UI tasks
Whether to attempt to run the action immediately - useful for UI tasks