// Token: 0x0600036C RID: 876 RVA: 0x00015A40 File Offset: 0x00013C40
 public override void Execute()
 {
     ExTraceGlobals.FrameworkTracer.TraceDebug <MServeQueryList, int>((long)this.GetHashCode(), "{0} Execute() called for {1} addresses.", this, this.resultDictionary.Values.Count);
     foreach (MServeQueryResult mserveQueryResult in this.resultDictionary.Values)
     {
         mserveQueryResult.RedirectServer = MServe.GetRedirectServer(mserveQueryResult.UserResultMapping.SmtpAddress.ToString());
     }
 }
Пример #2
0
        // Token: 0x06000280 RID: 640 RVA: 0x0001142C File Offset: 0x0000F62C
        private static bool RedirectCaller(OperationContext operationContext, string smtpAddress)
        {
            string redirectServer = MServe.GetRedirectServer(smtpAddress);

            if (!string.IsNullOrEmpty(redirectServer))
            {
                return(AutodiscoverAuthorizationManager.BuildRedirectUrlAndRedirectCaller(operationContext, redirectServer));
            }
            string reason = string.Format("No redirection server for Identity: {0}; ", smtpAddress.ToString());

            return(AutodiscoverAuthorizationManager.Return403UnauthorizedResponse(operationContext, reason));
        }
Пример #3
0
        // Token: 0x06000311 RID: 785 RVA: 0x000140C8 File Offset: 0x000122C8
        protected override string CreateOnCacheMiss(string key, ref bool shouldAdd)
        {
            int    num = Interlocked.Increment(ref MserveDomainCache.concurrentMserveLookups);
            string redirectServer;

            try
            {
                if (num > MserveDomainCache.concurrentLookupMaximum.Value)
                {
                    throw new OverBudgetException();
                }
                redirectServer = MServe.GetRedirectServer(string.Format("E5CB63F56E8B4b69A1F70C192276D6AD@{0}", key));
            }
            finally
            {
                Interlocked.Decrement(ref MserveDomainCache.concurrentMserveLookups);
            }
            return(redirectServer);
        }