// Token: 0x06000B0C RID: 2828 RVA: 0x000325A3 File Offset: 0x000307A3
 public static bool TryGetPuidByExternalDirectoryObjectId(string guidString, out ulong puid)
 {
     if (string.IsNullOrEmpty(guidString) || !Globals.IsDatacenter)
     {
         puid = 0UL;
         return(false);
     }
     return(ConsumerIdentityHelper.TryGetPuidFromGuid(new Guid(guidString), out puid));
 }
 // Token: 0x06000B0B RID: 2827 RVA: 0x00032548 File Offset: 0x00030748
 public static bool TryGetPuidFromADObjectId(ADObjectId objectId, out ulong puid)
 {
     if (objectId != null && Globals.IsDatacenter)
     {
         if (!string.IsNullOrEmpty(objectId.DistinguishedName) && ConsumerIdentityHelper.TryGetPuidFromDN(objectId.DistinguishedName, out puid))
         {
             return(true);
         }
         if (objectId.ObjectGuid != Guid.Empty && ConsumerIdentityHelper.TryGetPuidFromGuid(objectId.ObjectGuid, out puid))
         {
             return(true);
         }
     }
     puid = 0UL;
     return(false);
 }
 // Token: 0x06000AFD RID: 2813 RVA: 0x0003218F File Offset: 0x0003038F
 public static bool IsMigratedConsumerMailbox(ADRawEntry userEntry)
 {
     return(userEntry != null && Globals.IsDatacenter && ConsumerIdentityHelper.IsConsumerMailbox(userEntry.Id) && (PrimaryMailboxSourceType)userEntry[ADUserSchema.PrimaryMailboxSource] == PrimaryMailboxSourceType.Exo);
 }
 // Token: 0x06000AF7 RID: 2807 RVA: 0x0003208B File Offset: 0x0003028B
 public static bool IsConsumerDomain(SmtpDomain domainName)
 {
     return(domainName != null && Globals.IsDatacenter && ConsumerIdentityHelper.IsConsumerMailbox("@" + domainName.Domain));
 }
        // Token: 0x06000B04 RID: 2820 RVA: 0x000322F8 File Offset: 0x000304F8
        public static ADObjectId GetADObjectIdFromPuid(ulong puid)
        {
            Guid exchangeGuidFromPuid = ConsumerIdentityHelper.GetExchangeGuidFromPuid(puid);

            return(new ADObjectId(ConsumerIdentityHelper.GetDistinguishedNameFromPuid(puid), exchangeGuidFromPuid));
        }
 // Token: 0x06000B03 RID: 2819 RVA: 0x000322D4 File Offset: 0x000304D4
 public static string GetExternalDirectoryObjectIdFromPuid(ulong puid)
 {
     return(ConsumerIdentityHelper.GetExchangeGuidFromPuid(puid).ToString());
 }
        // Token: 0x06000B02 RID: 2818 RVA: 0x000322A4 File Offset: 0x000304A4
        public static string GetDistinguishedNameFromPuid(ulong puid)
        {
            ADObjectId organizationalUnit = ADSessionSettings.FromConsumerOrganization().CurrentOrganizationId.OrganizationalUnit;

            return(organizationalUnit.GetChildId(ConsumerIdentityHelper.GetCommonNameFromPuid(puid)).DistinguishedName);
        }