Example #1
0
 /// <summary>
 /// Removes the specified work item from the scheduler queue.
 /// </summary>
 /// <param name="scheduledItem">Work item to be removed from the scheduler queue.</param>
 /// <returns>true if the item was found; false otherwise.</returns>
 public bool Remove(ScheduledItem scheduledItem)
 {
     return(_queue.Remove(scheduledItem));
 }
Example #2
0
 /// <summary>
 /// Enqueues the specified work item to be scheduled.
 /// </summary>
 /// <param name="scheduledItem">Work item to be scheduled.</param>
 public void Enqueue(ScheduledItem scheduledItem)
 {
     _queue.Enqueue(scheduledItem);
 }