19 references to AddConstraint
Microsoft.AspNetCore.Routing (19)
RouteOptions.cs (19)
107AddConstraint<IntRouteConstraint>(defaults, "int");
108AddConstraint<BoolRouteConstraint>(defaults, "bool");
109AddConstraint<DateTimeRouteConstraint>(defaults, "datetime");
110AddConstraint<DecimalRouteConstraint>(defaults, "decimal");
111AddConstraint<DoubleRouteConstraint>(defaults, "double");
112AddConstraint<FloatRouteConstraint>(defaults, "float");
113AddConstraint<GuidRouteConstraint>(defaults, "guid");
114AddConstraint<LongRouteConstraint>(defaults, "long");
117AddConstraint<MinLengthRouteConstraint>(defaults, "minlength");
118AddConstraint<MaxLengthRouteConstraint>(defaults, "maxlength");
119AddConstraint<LengthRouteConstraint>(defaults, "length");
122AddConstraint<MinRouteConstraint>(defaults, "min");
123AddConstraint<MaxRouteConstraint>(defaults, "max");
124AddConstraint<RangeRouteConstraint>(defaults, "range");
127AddConstraint<AlphaRouteConstraint>(defaults, "alpha");
130AddConstraint<RegexErrorStubRouteConstraint>(defaults, "regex"); // Used to generate error message at runtime with helpful message.
131AddConstraint<RequiredRouteConstraint>(defaults, "required");
141AddConstraint<FileNameRouteConstraint>(defaults, "file");
142AddConstraint<NonFileNameRouteConstraint>(defaults, "nonfile");