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