public List<Transfer> Queue
{
get { return _queue; }
set { _queue = value; }
}
TransferFromQueue()
{
// Do stuff
// Remove transfered item from Queue
}
My Queue is a variable to which items will be added and removed all the time.
I'm looking for a way to execute TransferFromQueue() whenever there are items in the list. Though it should never be running more than one istance of TransferFromQueue().
How can I loop this queue one by one when there are items in the Queue?