Example #1
0
        // Token: 0x06001542 RID: 5442 RVA: 0x000794E0 File Offset: 0x000776E0
        public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
        {
            MailboxAssociationReplicationAssistantType.Tracer.TraceFunction((long)this.GetHashCode(), "MailboxAssociationReplicationAssistantType.IsMailboxInteresting");
            if (!mailboxInformation.IsGroupMailbox())
            {
                MailboxAssociationReplicationAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "[{0}]: mailbox is not a group mailbox. No need to process it.", mailboxInformation.MailboxGuid);
                return(false);
            }
            DateTime?nextReplicationTime = mailboxInformation.GetMailboxProperty(MailboxSchema.MailboxAssociationNextReplicationTime) as DateTime?;

            return(MailboxAssociationReplicationAssistantType.IsMailboxNextSyncTimeDue(nextReplicationTime, mailboxInformation.MailboxGuid));
        }
 // Token: 0x06001487 RID: 5255 RVA: 0x0007649C File Offset: 0x0007469C
 public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
 {
     ArgumentValidator.ThrowIfNull("mailboxInformation", mailboxInformation);
     return(this.isInterestingProcessor.IsInteresting(new MailboxProcessorRequest
     {
         LastLogonTime = new DateTime?(mailboxInformation.LastLogonTime),
         IsPublicFolderMailbox = mailboxInformation.IsPublicFolderMailbox(),
         IsGroupMailbox = mailboxInformation.IsGroupMailbox(),
         IsSharedMailbox = mailboxInformation.IsSharedMailbox(),
         IsTeamSiteMailbox = mailboxInformation.IsTeamSiteMailbox(),
         DiagnosticsText = PeopleCentricTriageAssistantType.GetDiagnosticsText(mailboxInformation)
     }, DateTime.UtcNow));
 }
Example #3
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));
        }
 // Token: 0x06000E3E RID: 3646 RVA: 0x00055850 File Offset: 0x00053A50
 public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
 {
     if (mailboxInformation.IsPublicFolderMailbox() || mailboxInformation.IsGroupMailbox())
     {
         return(false);
     }
     if (!CalendarUpgrade.IsMailboxActive(new ExDateTime?(new ExDateTime(ExTimeZone.UtcTimeZone, mailboxInformation.LastLogonTime.ToUniversalTime()))))
     {
         SharingPolicyAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "{0}: mailbox is inactive hence skipping it.", mailboxInformation.MailboxGuid);
         return(false);
     }
     SharingPolicyAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "{0}: mailbox is not GroupMailbox/PublicFolderMailbox and is active too. Adding to the list of mailboxes to process.", mailboxInformation.MailboxGuid);
     return(true);
 }
Example #5
0
 // Token: 0x06000E20 RID: 3616 RVA: 0x00055444 File Offset: 0x00053644
 public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
 {
     if (!mailboxInformation.IsUserMailbox() && !mailboxInformation.IsGroupMailbox())
     {
         CalendarRepairAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "CalendarRepairAssistant Mailbox guid {0}: Not group or user mailbox", mailboxInformation.MailboxGuid);
         return(false);
     }
     if (!CalendarUpgrade.IsMailboxActive(new ExDateTime?(new ExDateTime(ExTimeZone.UtcTimeZone, mailboxInformation.LastLogonTime.ToUniversalTime()))))
     {
         CalendarRepairAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "CalendarRepairAssistant Mailbox guid {0}: Inactive mailbox", mailboxInformation.MailboxGuid);
         return(false);
     }
     CalendarRepairAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "CalendarRepairAssistant Mailbox guid {0}: Interesting mailbox", mailboxInformation.MailboxGuid);
     return(true);
 }
Example #6
0
 // Token: 0x0600146D RID: 5229 RVA: 0x00076135 File Offset: 0x00074335
 private static bool IsGroupMailbox(MailboxInformation mailboxInformation)
 {
     return(mailboxInformation.IsSharedMailbox() || mailboxInformation.IsGroupMailbox() || mailboxInformation.IsTeamSiteMailbox());
 }