internal ActivityChecker(IJiraTimerCollection timerCollection, IAppSettings appSettings) { activityStopwatch = new ActivityStopwatch(); this.timerCollection = timerCollection; lockObject = new object(); hearbeat = new Timer(500); hearbeat.Elapsed += HearbeatOnElapsed; UpdateAppSettings(appSettings); }
internal ActivityChecker(IJiraTimerCollection timerCollection, ISettingsCollection settingsCollection) { activityStopwatch = new ActivityStopwatch(); this.timerCollection = timerCollection; this.settingsCollection = settingsCollection; lockObject = new object(); hearbeat = new Timer(500); hearbeat.Elapsed += HearbeatOnElapsed; hearbeat.Start(); }