示例#1
0
		private void StartTimer()
		{
			if (_timer != null)
				return;

			_timer = new Timer(unused => UpdateIsStoreOnline(), null, TimeSpan.FromSeconds(5));
			_timer.Start();
		}
示例#2
0
        public override void Start()
        {
            base.Start();

            OnTimer(null);

            _timer = new Timer(OnTimer, null, 2000);
            _timer.Start();

            _synchronizationContext   = SynchronizationContext.Current;
            _refreshProcessInfoThread = new Thread(PollProcessInfo);
            _refreshProcessInfoThread.Start();
        }
 public void Invalidate()
 {
     _throttleTimer.Start();
 }
示例#4
0
		private LocalServerWatcher()
		{
			_refreshTimer = new Timer(OnTimerElapsed, null, TimeSpan.FromSeconds(20));
			_refreshTimer.Start();
		}
 private LocalServerWatcher()
 {
     _refreshTimer = new Timer(OnTimerElapsed, null, TimeSpan.FromSeconds(20));
     _refreshTimer.Start();
 }