Beispiel #1
0
        // Token: 0x0600017A RID: 378 RVA: 0x00007B84 File Offset: 0x00005D84
        private string GetResourceForestFqdnByAcceptedDomainName(string tenantAcceptedDomain)
        {
            string resourceForestFqdn;

            if (!TargetForestAnchorMailbox.domainToResourceForestMap.TryGetValue(tenantAcceptedDomain, ref resourceForestFqdn))
            {
                long latency = 0L;
                resourceForestFqdn = LatencyTracker.GetLatency <string>(delegate()
                {
                    resourceForestFqdn = ADAccountPartitionLocator.GetResourceForestFqdnByAcceptedDomainName(tenantAcceptedDomain);
                    return(resourceForestFqdn);
                }, out latency);
                TargetForestAnchorMailbox.domainToResourceForestMap.TryInsertAbsolute(tenantAcceptedDomain, resourceForestFqdn, TargetForestAnchorMailbox.DomainForestAbsoluteTimeout.Value);
                base.RequestContext.LatencyTracker.HandleGlsLatency(latency);
            }
            return(resourceForestFqdn);
        }
        // Token: 0x0600081B RID: 2075 RVA: 0x000214F4 File Offset: 0x0001F6F4
        private string GetResourceForestFqdnByAcceptedDomainName(string tenantAcceptedDomain)
        {
            Stopwatch stopwatch = new Stopwatch();
            string    resourceForestFqdnByAcceptedDomainName;

            try
            {
                stopwatch.Start();
                resourceForestFqdnByAcceptedDomainName = ADAccountPartitionLocator.GetResourceForestFqdnByAcceptedDomainName(tenantAcceptedDomain);
            }
            finally
            {
                stopwatch.Stop();
                long elapsedMilliseconds = stopwatch.ElapsedMilliseconds;
                this.glsLatencies.Add(elapsedMilliseconds);
            }
            return(resourceForestFqdnByAcceptedDomainName);
        }
Beispiel #3
0
 public string FindResourceForestFqdnByAcceptedDomainName(string acceptedDomain, IRoutingDiagnostics diagnostics)
 {
     return(ADAccountPartitionLocator.GetResourceForestFqdnByAcceptedDomainName(acceptedDomain));
 }