Esempio n. 1
0
        // Token: 0x06000194 RID: 404 RVA: 0x0000BCC0 File Offset: 0x00009EC0
        private Unlimited <EnhancedTimeSpan>?GetLegacyLitigationHoldDuration(out ElcMailboxHelper.ConfigState state)
        {
            state = ElcMailboxHelper.ConfigState.Unknown;
            Unlimited <EnhancedTimeSpan> value;
            Exception ex;

            ElcMailboxHelper.TryGetExistingHoldDurationInStore(this.mailboxSession.MailboxOwner, this.mailboxSession.ClientInfoString, out value, out state, out ex);
            if (state == ElcMailboxHelper.ConfigState.Found)
            {
                return(new Unlimited <EnhancedTimeSpan>?(value));
            }
            if (ex != null)
            {
                ElcUserInformation.Tracer.TraceDebug <IExchangePrincipal>((long)this.GetHashCode(), "{0}: Unable to retrieve litigation hold duration for this mailbox.", this.mailboxSession.MailboxOwner);
                Globals.Logger.LogEvent(InfoWorkerEventLogConstants.Tuple_FailedToReadLitigationHoldDurationFromPrimaryMailbox, null, new object[]
                {
                    this.mailboxSession.MailboxOwner
                });
            }
            else
            {
                ElcUserInformation.Tracer.TraceDebug <IExchangePrincipal, string>((long)this.GetHashCode(), "{0}: Unable to retrieve litigation hold duration for this mailbox. ConfigState is {1}. No error encountered", this.mailboxSession.MailboxOwner, state.ToString());
            }
            return(new Unlimited <EnhancedTimeSpan>?(Unlimited <EnhancedTimeSpan> .UnlimitedValue));
        }