2 writes to MaxLength
Microsoft.AspNetCore.Routing (2)
Constraints\LengthRouteConstraint.cs (2)
35
MinLength =
MaxLength
= length;
66
MaxLength
= maxLength;
4 references to MaxLength
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
246
schema[OpenApiSchemaKeywords.MaxLengthKeyword] = lengthRouteConstraint.
MaxLength
;
Microsoft.AspNetCore.Routing (1)
Constraints\LengthRouteConstraint.cs (1)
107
return length >= MinLength && length <=
MaxLength
;
Microsoft.AspNetCore.Routing.Tests (2)
DefaultInlineConstraintResolverTest.cs (2)
173
Assert.Equal(5, ((LengthRouteConstraint)constraint).
MaxLength
);
185
Assert.Equal(10, lengthConstraint.
MaxLength
);