diff options
Diffstat (limited to 'src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs')
-rw-r--r-- | src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs index b8bac787a7..48bca301c0 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs @@ -4,20 +4,19 @@ using System.Collections.Generic; using System.Linq; -namespace Microsoft.AspNetCore.Routing.Matching +namespace Microsoft.AspNetCore.Routing.Matching; + +internal class TrivialMatcherBuilder : MatcherBuilder { - internal class TrivialMatcherBuilder : MatcherBuilder - { - private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>(); + private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>(); - public override void AddEndpoint(RouteEndpoint endpoint) - { - _endpoints.Add(endpoint); - } + public override void AddEndpoint(RouteEndpoint endpoint) + { + _endpoints.Add(endpoint); + } - public override Matcher Build() - { - return new TrivialMatcher(_endpoints.Last()); - } + public override Matcher Build() + { + return new TrivialMatcher(_endpoints.Last()); } } |