// Token: 0x06000027 RID: 39 RVA: 0x000026A8 File Offset: 0x000008A8
        private AutoDiscoverV2Response GetResourceUrlResponse(string hostName, string protocol)
        {
            string resourceUrl = ResourceUrlBuilder.GetResourceUrl(protocol, hostName);

            this.logger.AppendGenericInfo("GetResourceUrlResponse", resourceUrl);
            return(new AutoDiscoverV2Response
            {
                ProtocolName = protocol,
                Url = resourceUrl
            });
        }
 // Token: 0x0600002A RID: 42 RVA: 0x0000286C File Offset: 0x00000A6C
 private bool TryGetEmailRedirectResponse(AutoDiscoverV2Request request, ADRecipient recipient, out AutoDiscoverV2Response redirectResponse)
 {
     redirectResponse = null;
     if (recipient == null)
     {
         return(false);
     }
     this.logger.AppendGenericInfo("ADUserFound", recipient.RecipientType);
     if (recipient.ExternalEmailAddress != null && recipient.ExternalEmailAddress.AddressString != null && recipient.ExternalEmailAddress.PrefixString == "SMTP")
     {
         this.logger.AppendGenericInfo("TryGetEmailRedirectResponse", string.Format("ExternalEmailAddressFound - {0}", recipient.ExternalEmailAddress.AddressString + " " + request.EmailAddress.Address));
         redirectResponse = ResourceUrlBuilder.GetRedirectResponse(this.logger, "outlook.office365.com", recipient.ExternalEmailAddress.AddressString, request.Protocol, request.RedirectCount, null);
         return(true);
     }
     return(false);
 }
 // Token: 0x06000041 RID: 65 RVA: 0x00002B0A File Offset: 0x00000D0A
 public static string GetResourceUrl(string protocol, string hostName)
 {
     return(string.Format("https://{0}{1}", hostName, ResourceUrlBuilder.GetResourceUrlSuffixForProtocol(protocol, hostName)));
 }