// Token: 0x060019E8 RID: 6632 RVA: 0x00096624 File Offset: 0x00094824
        private static void LookupExperience(OwaContext owaContext)
        {
            BrowserType browserType;

            UserAgentParser.UserAgentVersion userAgentVersion;
            Experience[] array;
            RequestDispatcherUtilities.LookupExperiencesForRequest(owaContext, false, true, out browserType, out userAgentVersion, out array);
            if (array == null || array.Length == 0)
            {
                throw new OwaClientNotSupportedException("FormsRegistryManager.LookupExperiences couldn't find any experience for this client.");
            }
            owaContext.AnonymousSessionContext.Experiences = array;
        }
Example #2
0
        // Token: 0x06000FDF RID: 4063 RVA: 0x00063078 File Offset: 0x00061278
        private bool ShouldInterceptRequest(HttpContext httpContext, bool avoidUserContextAccess = false)
        {
            if (Globals.OwaVDirType == OWAVDirType.Calendar)
            {
                return(true);
            }
            if (RequestDispatcherUtilities.IsPremiumRequest(httpContext.Request))
            {
                return(false);
            }
            OwaRequestType requestType = Utilities.GetRequestType(httpContext.Request);

            return(requestType == OwaRequestType.LanguagePage || requestType == OwaRequestType.Attachment || requestType == OwaRequestType.WebReadyRequest || RequestDispatcherUtilities.IsDownLevelClient(httpContext, avoidUserContextAccess));
        }
        // Token: 0x060019E3 RID: 6627 RVA: 0x000960B4 File Offset: 0x000942B4
        private static bool CheckRequestType(OwaContext owaContext)
        {
            bool result = false;

            owaContext.RequestType = Utilities.GetRequestType(owaContext.HttpContext.Request);
            if (owaContext.RequestType == OwaRequestType.Resource)
            {
                return(true);
            }
            if (owaContext.RequestType != OwaRequestType.PublishedCalendarView && owaContext.RequestType != OwaRequestType.ProxyPing && owaContext.RequestType != OwaRequestType.ServiceRequest && owaContext.RequestType != OwaRequestType.ICalHttpHandler)
            {
                Utilities.EndResponse(owaContext.HttpContext, HttpStatusCode.BadRequest);
                result = true;
            }
            if (owaContext.RequestType == OwaRequestType.ProxyPing)
            {
                RequestDispatcherUtilities.RespondProxyPing(owaContext);
                Utilities.EndResponse(owaContext.HttpContext, owaContext.HttpStatusCode);
            }
            return(result);
        }
Example #4
0
 // Token: 0x06001330 RID: 4912 RVA: 0x00077121 File Offset: 0x00075321
 internal static FormValue DoFormsRegistryLookup(ISessionContext sessionContext, ApplicationElement applicationElement, string type, string action, string state)
 {
     return(RequestDispatcherUtilities.DoFormsRegistryLookup(sessionContext.Experiences, sessionContext.SegmentationFlags, applicationElement, type, action, state));
 }
Example #5
0
 // Token: 0x06001333 RID: 4915 RVA: 0x00077275 File Offset: 0x00075475
 internal static bool ShouldDoBasicRegistryLookup(OwaContext owaContext)
 {
     return((RequestDispatcherUtilities.IsDownLevelClient(owaContext.HttpContext, false) && owaContext.RequestType != OwaRequestType.Attachment && owaContext.RequestType != OwaRequestType.WebReadyRequest && owaContext.RequestType != OwaRequestType.Aspx) || owaContext.RequestType == OwaRequestType.WebPart);
 }