public void RegisterForPushSync() { if (Settings.Instance.SyncDirection != Sync.Direction.GoogleToOutlook) { log.Debug("Create the timer for the push synchronisation"); if (OgcsPushTimer == null) { OgcsPushTimer = Sync.PushSyncTimer.Instance; } if (!OgcsPushTimer.Running()) { OgcsPushTimer.Switch(true); } } }
public void RegisterForPushSync() { if (!this.OutlookPush || this.SyncDirection.Id == Sync.Direction.GoogleToOutlook.Id) { return; } log.Info("Start monitoring for Outlook appointments changes on profile: " + this._ProfileName); if (this.OgcsPushTimer == null) { this.OgcsPushTimer = new Sync.PushSyncTimer(this); } if (!this.OgcsPushTimer.Running()) { this.OgcsPushTimer.Activate(true); } }