Пример #1
0
 /// <summary>
 /// Adds a delayed action to the task.
 /// This method will be executed the first time the task is executed.
 /// </summary>
 /// <param name="action">The action.</param>
 public void AddDelayedAction(Action action)
 {
     if (action == null)
     {
         throw new ArgumentNullException(nameof(action));
     }
     DelayedActions.Enqueue(action);
 }