// Token: 0x0600031A RID: 794 RVA: 0x00010C84 File Offset: 0x0000EE84
        public static string GetResourceForestFqdnByExternalDirectoryOrganizationId(Guid externalDirectoryOrganizationId)
        {
            if (!Globals.IsMicrosoftHostedOnly)
            {
                return(PartitionId.LocalForest.ForestFQDN);
            }
            TenantPartitionCacheItem tenantPartitionCacheItem = ADAccountPartitionLocator.FindTenantInfoByExternalOrgId(externalDirectoryOrganizationId);

            if (tenantPartitionCacheItem != null)
            {
                ADAccountPartitionLocator.EnsureAllowedCallerForUnregisteredAccountPartition(tenantPartitionCacheItem);
                return(tenantPartitionCacheItem.ResourceForestFqdn);
            }
            throw new CannotResolveExternalDirectoryOrganizationIdException(DirectoryStrings.CannotResolveTenantNameByExternalDirectoryId(externalDirectoryOrganizationId.ToString()));
        }
        // Token: 0x0600031C RID: 796 RVA: 0x00010CEC File Offset: 0x0000EEEC
        public static PartitionId GetPartitionIdByExternalDirectoryOrganizationId(Guid externalDirectoryOrganizationId, out string tenantContainerCN)
        {
            tenantContainerCN = null;
            TenantPartitionCacheItem tenantPartitionCacheItem = ADAccountPartitionLocator.FindTenantInfoByExternalOrgId(externalDirectoryOrganizationId);

            if (tenantPartitionCacheItem != null)
            {
                ADAccountPartitionLocator.EnsureAllowedCallerForUnregisteredAccountPartition(tenantPartitionCacheItem);
                tenantContainerCN = tenantPartitionCacheItem.TenantName;
                return(tenantPartitionCacheItem.AccountPartitionId);
            }
            Globals.LogEvent(DirectoryEventLogConstants.Tuple_CannotResolveExternalDirectoryOrganizationId, externalDirectoryOrganizationId.ToString(), new object[]
            {
                DirectoryStrings.CannotResolveTenantNameByExternalDirectoryId(externalDirectoryOrganizationId.ToString()),
                Environment.StackTrace
            });
            throw new CannotResolveExternalDirectoryOrganizationIdException(DirectoryStrings.CannotResolveTenantNameByExternalDirectoryId(externalDirectoryOrganizationId.ToString()));
        }