コード例 #1
0
        internal ActivityChecker(IJiraTimerCollection timerCollection, IAppSettings appSettings)
        {
            activityStopwatch = new ActivityStopwatch();
            this.timerCollection = timerCollection;
            lockObject = new object();

            hearbeat = new Timer(500);
            hearbeat.Elapsed += HearbeatOnElapsed;

            UpdateAppSettings(appSettings);
        }
コード例 #2
0
ファイル: ActivityChecker.cs プロジェクト: forki/Gallifrey
        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();
        }