Example #1
0
        }     // RunBoiler

        static void CheckBoiler(ChocolateBoiler boiler)
        {
            while (true)
            {
                int t = boiler.GetTemperature();
                WriteLine("Temperature of boiler <{0}> is {1}°", boiler.Name, t);
                Thread.Sleep(500);
            } // forever
        }     // RunBoiler