public static bool IsEDiscoveryExportToolRequest(HttpRequest request)
        {
            string absolutePath = request.Url.AbsolutePath;

            if (string.IsNullOrEmpty(absolutePath))
            {
                return(false);
            }
            if (absolutePath.IndexOf("/exporttool/", StringComparison.OrdinalIgnoreCase) < 0)
            {
                return(false);
            }
            EDiscoveryExportToolRequestPathHandler.EnsureRegexInit();
            return(EDiscoveryExportToolRequestPathHandler.applicationPathRegex.IsMatch(absolutePath));
        }
 public static Match GetPathMatch(HttpRequest request)
 {
     EDiscoveryExportToolRequestPathHandler.EnsureRegexInit();
     return(EDiscoveryExportToolRequestPathHandler.applicationPathRegex.Match(request.Url.AbsolutePath));
 }