// Token: 0x060001D8 RID: 472 RVA: 0x00008C00 File Offset: 0x00006E00 public override AnchorMailbox CreateAuthModuleSpecificAnchorMailbox(IRequestContext requestContext) { string liveIdMemberName; AnchorMailbox result; if (RequestCookieParser.TryGetDefaultAnchorMailboxCookie(requestContext.HttpContext.Request.Cookies, ref liveIdMemberName)) { requestContext.Logger.SafeSet(3, "DefaultAnchorMailboxCookie"); result = new LiveIdMemberNameAnchorMailbox(liveIdMemberName, null, requestContext); } else { requestContext.Logger.SafeSet(3, "UnauthenticatedAnonymous"); result = new AnonymousAnchorMailbox(requestContext); } return(result); }
// Token: 0x060001B2 RID: 434 RVA: 0x00008840 File Offset: 0x00006A40 public override AnchorMailbox CreateAuthModuleSpecificAnchorMailbox(IRequestContext requestContext) { AnchorMailbox result = null; string text; if (RequestCookieParser.TryGetDefaultAnchorMailboxCookie(requestContext.HttpContext.Request.Cookies, ref text)) { if (SmtpAddress.IsValidSmtpAddress(text)) { string organizationContext; HttpContextItemParser.TryGetLiveIdOrganizationContext(requestContext.HttpContext.Items, ref organizationContext); requestContext.Logger.SafeSet(3, "DefaultAnchorMailboxCookie"); result = new LiveIdMemberNameAnchorMailbox(text, organizationContext, requestContext); } } else { requestContext.Logger.SafeSet(3, "UnauthenticatedAnonymous"); result = new AnonymousAnchorMailbox(requestContext); } return(result); }
// Token: 0x06000530 RID: 1328 RVA: 0x0001CD1C File Offset: 0x0001AF1C protected override AnchorMailbox ResolveAnchorMailbox() { string text; string text2; if (RequestHeaderParser.TryGetPreferServerAffinity(base.HttpContext.Request.Headers, ref text) && text.Equals(bool.TrueString, StringComparison.OrdinalIgnoreCase) && RequestCookieParser.TryGetTargetServerOverride(base.HttpContext.Request.Cookies, ref text2)) { try { BackEndServer backendServer = BackEndServer.FromString(text2); base.Logger.Set(3, Constants.BackEndOverrideCookieName); return(new ServerInfoAnchorMailbox(backendServer, this)); } catch (ArgumentException ex) { base.Logger.AppendGenericError("Unable to parse TargetServer: {0}", text2); if (ExTraceGlobals.ExceptionTracer.IsTraceEnabled(1)) { ExTraceGlobals.ExceptionTracer.TraceDebug <string, ArgumentException>((long)this.GetHashCode(), "[EwsProxyRequestHandler::ResolveAnchorMailbox]: exception hit where target server was '{0}': {1}", text2, ex); } } } return(base.ResolveAnchorMailbox()); }