private void StartTimer() { if (_timer != null) return; _timer = new Timer(unused => UpdateIsStoreOnline(), null, TimeSpan.FromSeconds(5)); _timer.Start(); }
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(); }
private LocalServerWatcher() { _refreshTimer = new Timer(OnTimerElapsed, null, TimeSpan.FromSeconds(20)); _refreshTimer.Start(); }
private LocalServerWatcher() { _refreshTimer = new Timer(OnTimerElapsed, null, TimeSpan.FromSeconds(20)); _refreshTimer.Start(); }