Example #1
0
        // Token: 0x06001332 RID: 4914 RVA: 0x0004F2A0 File Offset: 0x0004D4A0
        public PhotoHandlers GetHandlersToSkip(HttpRequest request)
        {
            if (request == null)
            {
                return(PhotoHandlers.None);
            }
            PhotoHandlers photoHandlers = PhotoHandlers.None;

            photoHandlers |= PhotosDiagnostics.IsHandlerToBeSkipped(request, PhotoHandlers.FileSystem, "skipfs");
            photoHandlers |= PhotosDiagnostics.IsHandlerToBeSkipped(request, PhotoHandlers.Mailbox, "skipmbx");
            photoHandlers |= PhotosDiagnostics.IsHandlerToBeSkipped(request, PhotoHandlers.ActiveDirectory, "skipad");
            photoHandlers |= PhotosDiagnostics.IsHandlerToBeSkipped(request, PhotoHandlers.Caching, "skipcaching");
            photoHandlers |= PhotosDiagnostics.IsHandlerToBeSkipped(request, PhotoHandlers.Http, "skiphttp");
            photoHandlers |= PhotosDiagnostics.IsHandlerToBeSkipped(request, PhotoHandlers.Private, "skipprv");
            return(photoHandlers | PhotosDiagnostics.IsHandlerToBeSkipped(request, PhotoHandlers.RemoteForest, "skiprf"));
        }
Example #2
0
        // Token: 0x06001333 RID: 4915 RVA: 0x0004F324 File Offset: 0x0004D524
        public string GetHandlersToSkipQueryStringParametersWithLeadingAmpersand(PhotoRequest request)
        {
            if (request == null || request.HandlersToSkip == PhotoHandlers.None)
            {
                return(string.Empty);
            }
            PhotoHandlers handlersToSkip = request.HandlersToSkip;
            StringBuilder stringBuilder  = new StringBuilder();

            stringBuilder.Append(PhotosDiagnostics.GetSkipHandlerQueryParameterWithLeadingAmpersand(PhotoHandlers.FileSystem, "&skipfs=1", handlersToSkip));
            stringBuilder.Append(PhotosDiagnostics.GetSkipHandlerQueryParameterWithLeadingAmpersand(PhotoHandlers.Mailbox, "&skipmbx=1", handlersToSkip));
            stringBuilder.Append(PhotosDiagnostics.GetSkipHandlerQueryParameterWithLeadingAmpersand(PhotoHandlers.ActiveDirectory, "&skipad=1", handlersToSkip));
            stringBuilder.Append(PhotosDiagnostics.GetSkipHandlerQueryParameterWithLeadingAmpersand(PhotoHandlers.Caching, "&skipcaching=1", handlersToSkip));
            stringBuilder.Append(PhotosDiagnostics.GetSkipHandlerQueryParameterWithLeadingAmpersand(PhotoHandlers.Http, "&skiphttp=1", handlersToSkip));
            stringBuilder.Append(PhotosDiagnostics.GetSkipHandlerQueryParameterWithLeadingAmpersand(PhotoHandlers.Private, "&skipprv=1", handlersToSkip));
            stringBuilder.Append(PhotosDiagnostics.GetSkipHandlerQueryParameterWithLeadingAmpersand(PhotoHandlers.RemoteForest, "&skiprf=1", handlersToSkip));
            return(stringBuilder.ToString());
        }