예제 #1
0
        // Token: 0x06001519 RID: 5401 RVA: 0x00078B00 File Offset: 0x00076D00
        private void UpdateGroupMailboxMembership(MailboxSession mailboxSession)
        {
            int?valueOrDefault = mailboxSession.Mailbox.GetValueOrDefault <int?>(MailboxSchema.GroupMailboxPermissionsVersion, null);

            if (!GroupMailboxAssistantType.IsGroupMailboxPermissionsVersionOutdated(valueOrDefault, mailboxSession.MailboxGuid))
            {
                return;
            }
            GroupMailboxMembershipUpdater groupMailboxMembershipUpdater = new GroupMailboxMembershipUpdater(mailboxSession);

            groupMailboxMembershipUpdater.Update();
        }
예제 #2
0
        // Token: 0x06001526 RID: 5414 RVA: 0x00078CA0 File Offset: 0x00076EA0
        public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
        {
            GroupMailboxAssistantType.Tracer.TraceFunction((long)this.GetHashCode(), "GroupMailboxAssistantType.IsMailboxInteresting");
            if (!mailboxInformation.IsGroupMailbox())
            {
                GroupMailboxAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "[{0}]: mailbox is a not group mailbox.", mailboxInformation.MailboxGuid);
                return(false);
            }
            int?num          = mailboxInformation.GetMailboxProperty(MailboxSchema.GroupMailboxPermissionsVersion) as int?;
            int?photoVersion = mailboxInformation.GetMailboxProperty(MailboxSchema.GroupMailboxGeneratedPhotoVersion) as int?;

            mailboxInformation.GetMailboxProperty(MailboxSchema.GroupMailboxExchangeResourcesPublishedVersion);
            return(GroupMailboxAssistantType.IsGroupMailboxGeneratedPhotoOutdated(photoVersion, mailboxInformation.MailboxGuid) || GroupMailboxAssistantType.IsGroupMailboxPermissionsVersionOutdated(num, mailboxInformation.MailboxGuid) || GroupMailboxAssistantType.IsGroupMailboxExchangeResourcesVersionOutdated(num, mailboxInformation.MailboxGuid));
        }