19 implementations of MatchesLiteral
Microsoft.AspNetCore.Routing (19)
Constraints\BoolRouteConstraint.cs (1)
59bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\CompositeRouteConstraint.cs (1)
69bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\DateTimeRouteConstraint.cs (1)
65bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\DecimalRouteConstraint.cs (1)
59bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\DoubleRouteConstraint.cs (1)
63bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\FileNameRouteConstraint.cs (1)
155bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\FloatRouteConstraint.cs (1)
63bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\GuidRouteConstraint.cs (1)
61bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\IntRouteConstraint.cs (1)
59bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\LengthRouteConstraint.cs (1)
111bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\LongRouteConstraint.cs (1)
59bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\MaxLengthRouteConstraint.cs (1)
74bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\MaxRouteConstraint.cs (1)
74bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\MinLengthRouteConstraint.cs (1)
74bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\MinRouteConstraint.cs (1)
72bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\NonFileNameRouteConstraint.cs (1)
121bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\RangeRouteConstraint.cs (1)
86bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\RegexRouteConstraint.cs (1)
106bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
Constraints\StringRouteConstraint.cs (1)
49bool IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal)
3 references to MatchesLiteral
Microsoft.AspNetCore.Routing (3)
Constraints\CompositeRouteConstraint.cs (1)
73if (constraint is IParameterLiteralNodeMatchingPolicy literalConstraint && !literalConstraint.MatchesLiteral(parameterName, literal))
Matching\DfaMatcherBuilder.cs (2)
406if (parameterPolicy is IParameterLiteralNodeMatchingPolicy constraint && !constraint.MatchesLiteral(partParameter.Name, (string)parameterValue)) 443if (!hasFailingPolicy[literalIndex] && !constraint.MatchesLiteral(parameterPart.Name, literal))