16 instantiations of InputParser
Microsoft.AspNetCore.Rewrite (1)
IISUrlRewrite\UrlRewriteFileParser.cs (1)
31_inputParser = new InputParser(RewriteMapParser.Parse(xmlRoot), alwaysUseManagedServerVariables);
Microsoft.AspNetCore.Rewrite.Tests (15)
IISUrlRewrite\FileParserTests.cs (3)
57condList.Add(new Condition(new InputParser().ParseInputString("{HTTPS}"), new RegexMatch(new Regex("^OFF$"), false))); 97condList.Add(new Condition(new InputParser().ParseInputString("{HTTPS}"), new RegexMatch(new Regex("^OFF$"), false))); 192new RewriteAction(RuleResult.ContinueRules, new InputParser().ParseInputString(url, uriMatchPart), queryStringAppend: false),
IISUrlRewrite\InputParserTests.cs (11)
20var result = new InputParser().ParseInputString(testString, UriMatchPart.Path); 32var result = new InputParser().ParseInputString(testString, UriMatchPart.Path); 48var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 61var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 71var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 80var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 98var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 118Assert.Throws<FormatException>(() => new InputParser().ParseInputString(testString, UriMatchPart.Path)); 124Assert.Throws<FormatException>(() => new InputParser(null, false).ParseInputString("{apiMap:{R:1}}", UriMatchPart.Path)); 134Assert.Throws<FormatException>(() => new InputParser(maps, false).ParseInputString($"{{{undefinedMapName}:{{R:1}}}}", UriMatchPart.Path)); 148var pattern = new InputParser(maps, false).ParseInputString(inputString, UriMatchPart.Path);
IISUrlRewrite\MiddleWareTests.cs (1)
706var inputParser = new InputParser();
4 references to InputParser
Microsoft.AspNetCore.Rewrite (3)
IISUrlRewrite\UriMatchCondition.cs (2)
13public UriMatchCondition(InputParser inputParser, string input, string pattern, UriMatchPart uriMatchPart, bool ignoreCase, bool negate) 18private static Pattern CreatePattern(InputParser inputParser, string input, UriMatchPart uriMatchPart)
IISUrlRewrite\UrlRewriteFileParser.cs (1)
14private InputParser _inputParser = default!;
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\MiddleWareTests.cs (1)
706var inputParser = new InputParser();