Example #1
0
 // For this case we're specifically targeting the last entry to hit 'worst case'
 // performance for the matchers that scale linearly.
 private Matcher SetupMatcher(MatcherBuilder builder)
 {
     builder.AddEntry("/another-really-cool-entry", null);
     builder.AddEntry("/Some-Entry", null);
     builder.AddEntry("/a/path/with/more/segments", null);
     builder.AddEntry("/random/name", null);
     builder.AddEntry("/random/name2", null);
     builder.AddEntry("/random/name3", null);
     builder.AddEntry("/random/name4", null);
     builder.AddEntry("/plaintext1", null);
     builder.AddEntry("/plaintext2", null);
     builder.AddEntry("/plaintext", _endpoints[0]);
     return(builder.Build());
 }
 private Matcher SetupMatcher(MatcherBuilder builder)
 {
     builder.AddEntry("/plaintext", _endpoints[0]);
     return(builder.Build());
 }