Exemplo n.º 1
0
 // Token: 0x06000E0F RID: 3599 RVA: 0x00055318 File Offset: 0x00053518
 private void MarkMailboxForUpgrade(MailboxSession mbxSession, CalendarRepairAssistantLogEntry logEntry)
 {
     try
     {
         CalendarUpgrade.CalendarUpgradeStatus calendarUpgradeStatus = CalendarUpgrade.MarkMailboxForUpgrade(mbxSession, new XSOFactory());
         CalendarRepairAssistant.Tracer.TraceDebug <Guid, CalendarUpgrade.CalendarUpgradeStatus>((long)this.GetHashCode(), "MarkMailboxForUpgrade MailboxGuid:{0} UpgradeStatus:{1}", mbxSession.MailboxGuid, calendarUpgradeStatus);
         logEntry.UpgradeStatus = calendarUpgradeStatus.ToString();
     }
     catch (LocalizedException ex)
     {
         CalendarRepairAssistant.Tracer.TraceError <Guid, LocalizedException>((long)this.GetHashCode(), "MarkMailboxForUpgrade MailboxGuid:{0} Exception:{1}", mbxSession.MailboxGuid, ex);
         logEntry.AddExceptionToLog(ex);
     }
 }
 // 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);
 }
Exemplo n.º 3
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);
 }