/// <summary>
 /// Constraints a url parameter to be within a given range of lengths.
 /// </summary>
 /// <param name="minLength">The minimum length constraint</param>
 /// <param name="maxLength">The maximum length constraint</param>
 protected LengthRouteConstraintBase(MinLengthRouteConstraintBase minLength, MaxLengthRouteConstraintBase maxLength)
 {
     MinLengthConstraint = minLength;
     MaxLengthConstraint = maxLength;
 }
Example #2
0
 /// <summary>
 /// Constraints a url parameter to be within a given range of lengths.
 /// </summary>
 /// <param name="minLength">The minimum length constraint</param>
 /// <param name="maxLength">The maximum length constraint</param>
 protected LengthRouteConstraintBase(MinLengthRouteConstraintBase minLength, MaxLengthRouteConstraintBase maxLength)
 {
     MinLengthConstraint = minLength;
     MaxLengthConstraint = maxLength;
 }