コード例 #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());
 }
 // 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.AddEndpoint(_endpoints[0]);
     builder.AddEndpoint(_endpoints[1]);
     builder.AddEndpoint(_endpoints[2]);
     builder.AddEndpoint(_endpoints[3]);
     builder.AddEndpoint(_endpoints[4]);
     builder.AddEndpoint(_endpoints[5]);
     builder.AddEndpoint(_endpoints[6]);
     builder.AddEndpoint(_endpoints[7]);
     builder.AddEndpoint(_endpoints[8]);
     builder.AddEndpoint(_endpoints[9]);
     return(builder.Build());
 }
コード例 #3
0
 private Matcher SetupMatcher(MatcherBuilder builder)
 {
     builder.AddEntry("/plaintext", _endpoints[0]);
     return(builder.Build());
 }
コード例 #4
0
 private Matcher SetupMatcher(MatcherBuilder builder)
 {
     builder.AddEndpoint(_endpoints[0]);
     return(builder.Build());
 }