public SyncProfiles( Common.Configuration.Config appConfig, ILogger logger, IAppSettings appSettings, Profiles profiles, CachedProfiles cachedProfiles, ApiProfiles apiProfiles, SyncProfile syncProfile) { _appConfig = appConfig; _logger = logger; _appSettings = appSettings; _profiles = profiles; _cachedProfiles = cachedProfiles; _apiProfiles = apiProfiles; _syncProfile = syncProfile; _syncAction = new CoalescingAction(SyncAction); _syncAction.Completed += OnSyncCompleted; _timer = new System.Timers.Timer { Interval = _appConfig.ProfileSyncTimerPeriod.RandomizedWithDeviation(0.2).TotalMilliseconds, AutoReset = true }; _timer.Elapsed += (s, e) => OnTimerElapsed(); }
public NotifyingAppUpdate(IAppUpdate update) { _update = update; _checkForUpdate = new CoalescingAction(SafeCheckForUpdate); }