Example #1
0
 public void StartReceivingChatter()
 {
     _timer = new Timer((callbackState) => _simpleLog.Write("Microphone receives... - YES!\r\n"), null, 4000, 4000);
 }
Example #2
0
        // Protected methods

        protected override void DoEntering(SolidMachine <TelephoneTrigger> machine)
        {
            // Log that we're here
            _log.Write("Telephone is idle\r\n");
        }
Example #3
0
        // Methods

        public void StartLongBeep()
        {
            _simpleLog.Write("Speaker goes... BEE");

            _timer = new Timer((callbackState) => _simpleLog.Write("E"), null, 1000, 1000);
        }
Example #4
0
        // Methods

        /// <summary>
        /// Makes the bell ring.
        /// </summary>
        public void Ring()
        {
            _simpleLog.Write("RING... ");
        }