8 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));
50 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 (3)
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);