14 instantiations of MatchResults
Microsoft.AspNetCore.Rewrite (8)
ApacheModRewrite\ConditionEvaluator.cs (1)
53return new MatchResults(condResult.Success, prevBackReferences);
IISUrlRewrite\ConditionEvaluator.cs (1)
46return new MatchResults(condResult!.Success, prevBackReferences);
MatchResults.cs (2)
10public static readonly MatchResults EmptySuccess = new MatchResults(success: true); 11public static readonly MatchResults EmptyFailure = new MatchResults(success: false);
UrlMatches\ExactMatch.cs (1)
24return new MatchResults(success, new BackReferenceCollection(pattern));
UrlMatches\IsDirectoryMatch.cs (1)
16return new MatchResults(success: res != Negate);
UrlMatches\IsFileMatch.cs (1)
16return new MatchResults(success: res != Negate);
UrlMatches\RegexMatch.cs (1)
21return new MatchResults(success: res.Success != Negate, new BackReferenceCollection(res.Groups));
Microsoft.AspNetCore.Rewrite.Tests (6)
IISUrlRewrite\InputParserTests.cs (2)
180return new MatchResults(match.Success, new BackReferenceCollection(match.Groups)); 186return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
IISUrlRewrite\ServerVariableTests.cs (2)
162return new MatchResults(match.Success, new BackReferenceCollection(match.Groups)); 168return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
PatternSegments\ConditionMatchSegmentTests.cs (1)
32return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
PatternSegments\RuleMatchSegmentTests.cs (1)
31return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
58 references to MatchResults
Microsoft.AspNetCore.Rewrite (47)
ApacheModRewrite\ApacheModRewriteRule.cs (2)
24var initMatchRes = InitialMatch.Evaluate(context.HttpContext.Request.Path, context); 35var condResult = ConditionEvaluator.Evaluate(Conditions, context, initMatchRes.BackReferences);
ApacheModRewrite\Condition.cs (1)
19public MatchResults Evaluate(RewriteContext context, BackReferenceCollection? ruleBackReferences, BackReferenceCollection? conditionBackReferences)
ApacheModRewrite\ConditionEvaluator.cs (3)
10public static MatchResults Evaluate(IEnumerable<Condition> conditions, RewriteContext context, BackReferenceCollection? backReferences) 15public static MatchResults Evaluate(IEnumerable<Condition> conditions, RewriteContext context, BackReferenceCollection? backReferences, bool trackAllCaptures) 18MatchResults? condResult = null;
IISUrlRewrite\Condition.cs (1)
17public MatchResults Evaluate(RewriteContext context, BackReferenceCollection? ruleBackReferences, BackReferenceCollection? conditionBackReferences)
IISUrlRewrite\ConditionEvaluator.cs (2)
8public static MatchResults Evaluate(ConditionCollection conditions, RewriteContext context, BackReferenceCollection? backReferences) 11MatchResults? condResult = null;
IISUrlRewrite\IISUrlRewriteRule.cs (2)
43MatchResults initMatchResults; 59MatchResults? condResult = null;
MatchResults.cs (2)
10public static readonly MatchResults EmptySuccess = new MatchResults(success: true); 11public static readonly MatchResults EmptyFailure = new MatchResults(success: false);
UrlMatch.cs (1)
9public abstract MatchResults Evaluate(string input, RewriteContext context);
UrlMatches\ExactMatch.cs (2)
18public override MatchResults Evaluate(string pattern, RewriteContext context) 28return MatchResults.EmptyFailure;
UrlMatches\FileSizeMatch.cs (3)
13public override MatchResults Evaluate(string input, RewriteContext context) 16return fileInfo.Exists && fileInfo.Length > 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure;
UrlMatches\IntegerMatch.cs (14)
36public override MatchResults Evaluate(string input, RewriteContext context) 41return MatchResults.EmptyFailure; 47return compValue == _value ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 49return compValue > _value ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 51return compValue >= _value ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 53return compValue < _value ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 55return compValue <= _value ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 57return compValue != _value ? MatchResults.EmptySuccess : MatchResults.EmptyFailure;
UrlMatches\IsDirectoryMatch.cs (1)
13public override MatchResults Evaluate(string pattern, RewriteContext context)
UrlMatches\IsFileMatch.cs (1)
13public override MatchResults Evaluate(string pattern, RewriteContext context)
UrlMatches\RegexMatch.cs (1)
18public override MatchResults Evaluate(string pattern, RewriteContext context)
UrlMatches\StringMatch.cs (11)
26public override MatchResults Evaluate(string input, RewriteContext context) 31return string.Compare(input, _value, _stringComparison) == 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 33return string.Compare(input, _value, _stringComparison) > 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 35return string.Compare(input, _value, _stringComparison) >= 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 37return string.Compare(input, _value, _stringComparison) < 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 39return string.Compare(input, _value, _stringComparison) <= 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure;
Microsoft.AspNetCore.Rewrite.Tests (11)
IISUrlRewrite\InputParserTests.cs (2)
177private static MatchResults CreateRewriteMapRuleMatch(string input) 183private static MatchResults CreateRewriteMapConditionMatch(string input)
IISUrlRewrite\ServerVariableTests.cs (2)
159private static MatchResults CreateTestRuleMatch() 165private static MatchResults CreateTestCondMatch()
PatternSegments\ConditionMatchSegmentTests.cs (2)
19var condMatch = CreateTestMatch(); 29private static MatchResults CreateTestMatch()
PatternSegments\RuleMatchSegmentTests.cs (2)
18var ruleMatch = CreateTestMatch(); 28private static MatchResults CreateTestMatch()
UrlMatches\ExactMatchTests.cs (1)
20var matchResults = Match.Evaluate(pattern, context);
UrlMatches\IntegerMatchTests.cs (1)
32var matchResult = integerMatch.Evaluate(input, context);
UrlMatches\StringMatchTests.cs (1)
23var matchResult = stringMatch.Evaluate(input, context);