This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override AnchorMailbox ResolveAnchorMailbox() { | |
if (this.skipTargetBackEndCalculation) { | |
base.Logger.Set(3, "OrgRelationship-Anonymous"); | |
return new AnonymousAnchorMailbox(this); | |
} | |
if (base.UseRoutingHintForAnchorMailbox) { | |
string text; | |
if (RequestPathParser.IsAutodiscoverV2PreviewRequest(base.ClientRequest.Url.AbsolutePath)) { | |
text = base.ClientRequest.Params["Email"]; | |
} else if (RequestPathParser.IsAutodiscoverV2Version1Request(base.ClientRequest.Url.AbsolutePath)) { | |
int num = base.ClientRequest.Url.AbsolutePath.LastIndexOf('/'); | |
text = base.ClientRequest.Url.AbsolutePath.Substring(num + 1); | |
} else { | |
text = this.TryGetExplicitLogonNode(0); | |
} | |
string text2; | |
if (ExplicitLogonParser.TryGetNormalizedExplicitLogonAddress(text, ref text2) && SmtpAddress.IsValidSmtpAddress(text2)) | |
{ | |
this.isExplicitLogonRequest = true; | |
this.explicitLogonAddress = text; | |
//... | |
} | |
} | |
return base.ResolveAnchorMailbox(); | |
} | |
protected override UriBuilder GetClientUrlForProxy() { | |
string absoluteUri = base.ClientRequest.Url.AbsoluteUri; | |
string uri = absoluteUri; | |
if (this.isExplicitLogonRequest && !RequestPathParser.IsAutodiscoverV2Request(base.ClientRequest.Url.AbsoluteUri)) | |
{ | |
uri = UrlHelper.RemoveExplicitLogonFromUrlAbsoluteUri(absoluteUri, this.explicitLogonAddress); | |
} | |
return new UriBuilder(uri); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment