Ejemplo n.º 1
0
        /// <summary>
        ///    <para>Disposes of the resources (other than memory) used by
        ///       the <see cref='System.Timers.Timer'/>.</para>
        /// </summary>
        public void Close()
        {
            _initializing  = false;
            _delayedEnable = false;
            _enabled       = false;

            if (_timer != null)
            {
                _timer.Dispose();
                _timer = null;
            }
        }
Ejemplo n.º 2
0
 protected void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _startScheduler.Dispose();
             _stopScheduler.Dispose();
         }
         Stop();
     }
     _disposed = true;
 }