// Token: 0x0600077B RID: 1915 RVA: 0x0003507C File Offset: 0x0003327C
 private void HandleStoreEvent(MapiEvent mapiEvent, MailboxSession itemStore, StoreObject item, List <KeyValuePair <string, object> > customDataToLog)
 {
     using (Folder folder = Folder.Bind(itemStore, DefaultFolderType.Calendar))
     {
         string text = CalendarLoggingHelper.GetCalendarPermissionsLog(itemStore, folder);
         if (!string.IsNullOrEmpty(text))
         {
             text = string.Format("Client Type: {0} Move Status:{1} Permission Table:\n{2}", mapiEvent.ClientType, mapiEvent.EventMask, text);
         }
         else
         {
             text = string.Format("Client Type: {0} Mailbox session was null", mapiEvent.ClientType);
         }
         CalendarPermissionsLog.LogEntry(itemStore, text, new object[0]);
     }
 }
        // Token: 0x0600077A RID: 1914 RVA: 0x00034F74 File Offset: 0x00033174
        private void HandlePermissionChange(MapiEvent mapiEvent, MailboxSession itemStore, StoreObject item, List <KeyValuePair <string, object> > customDataToLog)
        {
            if (mapiEvent.ItemEntryId == null || itemStore.IsGroupMailbox())
            {
                return;
            }
            StoreObjectId storeObjectId   = StoreObjectId.FromProviderSpecificId(mapiEvent.ItemEntryId, StoreObjectType.Folder);
            StoreObjectId defaultFolderId = itemStore.GetDefaultFolderId(DefaultFolderType.Root);

            if (storeObjectId != null && defaultFolderId != null)
            {
                if (!storeObjectId.Equals(defaultFolderId) && !ObjectClass.IsCalendarFolder(mapiEvent.ObjectClass))
                {
                    return;
                }
                using (Folder folder = Folder.Bind(itemStore, storeObjectId))
                {
                    string text = CalendarLoggingHelper.GetCalendarPermissionsLog(itemStore, folder);
                    if (!string.IsNullOrEmpty(text))
                    {
                        text = string.Format("Client Type: {0} New Permission Table:\n{1}", mapiEvent.ClientType, text);
                    }
                    else
                    {
                        text = string.Format("Client Type: {0} Mailbox session or folder was null", mapiEvent.ClientType);
                    }
                    CalendarPermissionsLog.LogEntry(itemStore, text, new object[0]);
                    return;
                }
            }
            if (storeObjectId == null)
            {
                CalendarAssistant.GeneralTracer.TraceError <object, byte[]>((long)this.GetHashCode(), "{0}: Unable to bind to a calendar folder with FolderId {1}", TraceContext.Get(), mapiEvent.ItemEntryId);
                return;
            }
            CalendarAssistant.GeneralTracer.TraceError <object, Guid>((long)this.GetHashCode(), "{0}: Unable to bind to the root folder for Mailbox {1}", TraceContext.Get(), mapiEvent.MailboxGuid);
        }