Esempio n. 1
0
 // Token: 0x06000849 RID: 2121 RVA: 0x0003A754 File Offset: 0x00038954
 private void SaveLocalFolder(MailboxSession mailboxSession, Folder folder, PublishingSubscriptionData subscriptionData, FolderRow folderRow)
 {
     if (folder.Save().OperationResult != OperationResult.Succeeded)
     {
         InternetCalendarLog.LogEntry(mailboxSession, string.Format("InternetCalendarType.SyncFolder couldn't update LastAttemptedSyncTime of URL {0} on folder {1} with id {2}.", subscriptionData.PublishingUrl, folderRow.DisplayName, folderRow.FolderId));
         SynchronizableFolderType.Tracer.TraceDebug((long)this.GetHashCode(), "{0}: InternetCalendarType.SyncFolder couldn't update LastAttemptedSyncTime of URL {1} on folder {2} with id {3} for mailbox {4}.", new object[]
         {
             TraceContext.Get(),
             subscriptionData.PublishingUrl,
             folderRow.DisplayName,
             folderRow.FolderId,
             mailboxSession.DisplayName
         });
     }
 }
 // Token: 0x0600086F RID: 2159 RVA: 0x0003ACC0 File Offset: 0x00038EC0
 private void PostFolderDetailsToQuickLogs(MailboxSession mailboxSession, CalendarSyncFolderOperationLogEntry folderOpLogEntry, string folderDetailsToLog)
 {
     if (folderOpLogEntry.FolderType == "UnknownFolderType")
     {
         InternetCalendarLog.LogEntry(mailboxSession, string.Format("CalendarSyncAssistantHelper.ProcessFolder Couldn't find a corresponding SynchronizableFolderType object for folder id {0}.", folderOpLogEntry.FolderId));
         return;
     }
     if (folderOpLogEntry.FolderType == "InternetCalendar")
     {
         if (folderOpLogEntry.SubscriptionData == null)
         {
             string entry = string.Format("InternetCalendarType.Synchronize couldn't find subscription data for folder {0} with id {1} for mailbox {2}.", folderOpLogEntry.DisplayName, folderOpLogEntry.FolderId, mailboxSession.DisplayName);
             InternetCalendarLog.LogEntry(mailboxSession, entry);
         }
         InternetCalendarLog.LogEntry(mailboxSession, string.Format("Sync Details for InternetCalendar subscription {0}, folder {1} with id {2} are {3}.", new object[]
         {
             folderOpLogEntry.SubscriptionData,
             folderOpLogEntry.DisplayName,
             folderOpLogEntry.FolderId,
             folderDetailsToLog
         }));
     }
     if (folderOpLogEntry.IsDeadlineExpired)
     {
         SharingSyncAssistantLog.LogEntry(mailboxSession, "Deadline expired before processing folder {0}. MaxSyncTime: {1}", new object[]
         {
             folderOpLogEntry.DisplayName,
             SynchronizableFolderType.MaxSyncTimePerFolder
         });
     }
     SharingSyncAssistantLog.LogEntry(mailboxSession, "Sync Details for folder {0} are {1}", new object[]
     {
         folderOpLogEntry.DisplayName,
         folderDetailsToLog
     });
 }