/// <summary> /// Add mapped routes. /// </summary> public void MapRoute(string name, string regex, DefaultRoute defaults) { MappedRoute mappedRoute = new MappedRoute(); mappedRoute.name = name; mappedRoute.regex = regex; mappedRoute.defaults = defaults; _mappedRoutes.Add(mappedRoute); }
/// <summary> /// Initializes a new instance of the <see cref="MatchResult"/> class. /// </summary> /// <param name="matchStatus"></param> /// <param name="mappedRoute"></param> public MatchResult(Match matchStatus, MappedRoute mappedRoute) { MatchStatus = matchStatus; MappedRoute = mappedRoute; }