Beispiel #1
0
        //public methods
        public void Consume() //tested
        {
            Console.WriteLine("Task_CellBody {0} is consuming...", Id);

            while (DateTime.Now - start < runLength)
            {
                int voltage = body.TryRemoveFromBuffer();
                //Console.WriteLine("Task_CellBody {0} removed {1} from buffer.", Id, voltage);
            }//end while

            Console.WriteLine("Task_CellBody {0} is done.", Id);
        }