Nancy.RouteHelpers/RouteParameters.cs
/// <summary>
/// Creates a route that expects at least one string, for example, /mac
/// </summary>
/// <param name="NamedGroup">The name of the parameter in the route</param>
/// <param name="lengthStart">The minimum number of characters in the route</param>
/// <param name="lengthEnd">The minimum number of characters in the route</param>
/// <returns></returns>
Creates a route that expects at least one string, for example, /mac
Creates a route that expects at least one string for example / mac
public RouteParameters AnyStringAtLeastOnce(string NamedGroup, int lengthStart, int lengthEnd)
        {
            RouteBuilder.Append(@"(?<" + NamedGroup + @">[\S]{" + lengthStart + "," + lengthEnd + "})");
            return this;
        }
public RouteParameters AnyStringAtLeastOnce ( string NamedGroup , int lengthStart , int lengthEnd ) { RouteBuilder . Append ( @"(?<" + NamedGroup + @">[\S]{" + lengthStart + " " + lengthEnd + " " ) ; return this ; }
Creates a route that expects at least one string, for example, /mac
Creates a route that expects at least one string for example / mac
None
NamedGroup
string
The name of the parameter in the route
The name of the parameter in the route
lengthStart
int
The minimum number of characters in the route
The minimum number of characters in the route
lengthEnd
int
The minimum number of characters in the route
The minimum number of characters in the route