예제 #1
0
        internal static void CheckLegacyDNNotInUse(MailboxId disconnectedMailboxIdentity, string disconnectedMailboxLegacyDN, IRecipientSession globalCatalogSession, Task.ErrorLoggerDelegate errorLogger)
        {
            ADRecipient adrecipient = ConnectMailbox.FindMailboxByLegacyDN(disconnectedMailboxLegacyDN, globalCatalogSession);

            if (adrecipient != null)
            {
                errorLogger(new MdbAdminTaskException(Strings.ErrorMailboxLegacyDNInUse(disconnectedMailboxLegacyDN, disconnectedMailboxIdentity.ToString(), adrecipient.DisplayName)), ExchangeErrorCategory.ServerOperation, disconnectedMailboxIdentity);
            }
        }
예제 #2
0
        private ADUser FindArchiveUser(MailboxStatistics storeMailbox, IRecipientSession globalCatalogSession, Task.TaskErrorLoggingDelegate errorLogger)
        {
            ADRecipient adrecipient = ConnectMailbox.FindMailboxByLegacyDN(storeMailbox.LegacyDN, globalCatalogSession);

            if (adrecipient == null)
            {
                errorLogger(new MdbAdminTaskException(Strings.ErrorRecipientNotFound(storeMailbox.LegacyDN)), ErrorCategory.InvalidArgument, storeMailbox);
            }
            return((ADUser)adrecipient);
        }