private void FindTheRightCookie() { if (this.UseLastCommittedCookie.IsPresent) { CookieManager cookieManager = CookieManagerFactory.Default.GetCookieManager(ForwardSyncCookieType.CompanyIncremental, this.ServiceInstanceId, 1, TimeSpan.FromMinutes(30.0)); this.Cookie = cookieManager.ReadCookie(); base.WriteVerbose(Strings.GetMsoDiagnosticsLastCommittedCookieBeingUsed(cookieManager.GetMostRecentCookieTimestamp())); return; } if (this.Cookie == null) { this.Cookie = this.MsoSyncService.GetNewCookieForAllObjectsTypes(this.ServiceInstanceId); this.WriteWarning(Strings.GetMsoDiagnosticsNewCookieIsBeingUsed); } }