// Token: 0x0600073D RID: 1853 RVA: 0x0002A870 File Offset: 0x00028A70
        protected override AnchorMailbox ResolveAnchorMailbox()
        {
            string mailboxId = WopiRequestPathHandler.GetMailboxId(base.ClientRequest);

            if (!string.IsNullOrEmpty(mailboxId))
            {
                this.targetMailboxId = mailboxId;
                AnchorMailbox result;
                if (AnchorMailboxFactory.TryCreateFromMailboxGuid(this, mailboxId, out result))
                {
                    return(result);
                }
                if (SmtpAddress.IsValidSmtpAddress(mailboxId))
                {
                    base.Logger.Set(3, "Url-SMTP");
                    return(new SmtpAnchorMailbox(mailboxId, this));
                }
            }
            return(base.ResolveAnchorMailbox());
        }
        protected override AnchorMailbox ResolveAnchorMailbox()
        {
            UriBuilder uriBuilder = new UriBuilder(base.ClientRequest.Url);

            uriBuilder.Scheme = "https";
            uriBuilder.Port   = 444;
            string userEmailAddress = WopiRequestPathHandler.GetUserEmailAddress(base.ClientRequest);

            if (string.IsNullOrEmpty(userEmailAddress))
            {
                return(base.ResolveAnchorMailbox());
            }
            this.targetMailboxId = userEmailAddress;
            AnchorMailbox result;

            if (AnchorMailboxFactory.TryCreateFromMailboxGuid(this, userEmailAddress, out result))
            {
                return(result);
            }
            base.Logger.Set(HttpProxyMetadata.RoutingHint, "Url-SMTP");
            return(new SmtpAnchorMailbox(userEmailAddress, this));
        }
        // Token: 0x06000539 RID: 1337 RVA: 0x0001CFAC File Offset: 0x0001B1AC
        protected override AnchorMailbox ResolveAnchorMailbox()
        {
            UriBuilder uriBuilder = new UriBuilder(base.ClientRequest.Url);

            uriBuilder.Scheme = "https";
            uriBuilder.Port   = 444;
            string mailboxId = AuthenticatedWopiRequestPathHandler.GetMailboxId(base.ClientRequest);

            if (!string.IsNullOrEmpty(mailboxId))
            {
                this.targetMailboxId = mailboxId;
                AnchorMailbox result;
                if (AnchorMailboxFactory.TryCreateFromMailboxGuid(this, mailboxId, out result))
                {
                    return(result);
                }
                if (SmtpAddress.IsValidSmtpAddress(mailboxId))
                {
                    base.Logger.Set(3, "Url-SMTP");
                    return(new SmtpAnchorMailbox(mailboxId, this));
                }
            }
            return(base.ResolveAnchorMailbox());
        }