private static string[] GetParameterNames(LegacyRouteTemplate routeTemplate)
 {
     return(routeTemplate.Segments
            .Where(s => s.IsParameter)
            .Select(s => s.Value)
            .ToArray());
 }
示例#2
0
 public LegacyRouteEntry(LegacyRouteTemplate template, Type handler, string[] unusedRouteParameterNames)
 {
     Template = template;
     UnusedRouteParameterNames = unusedRouteParameterNames;
     Handler = handler;
 }