12 implementations of Comparer
Microsoft.AspNetCore.Routing (4)
Matching\AcceptsMatcherPolicy.cs (1)
20
public IComparer<Endpoint>
Comparer
{ get; } = new ConsumesMetadataEndpointComparer();
Matching\HostMatcherPolicy.cs (1)
24
public IComparer<Endpoint>
Comparer
{ get; } = new HostMetadataEndpointComparer();
Matching\HttpMethodMatcherPolicy.cs (1)
30
public IComparer<Endpoint>
Comparer
=> new HttpMethodMetadataEndpointComparer();
Matching\NegotiationMatcherPolicy.cs (1)
21
public IComparer<Endpoint>
Comparer
=> new NegotiationMetadataEndpointComparer();
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\MatcherBuilderMultipleEntryBenchmark.cs (2)
109
public IComparer<Endpoint>
Comparer
=> new TestEndpointComparer();
155
public IComparer<Endpoint>
Comparer
=> new TestEndpointComparer();
Microsoft.AspNetCore.Routing.Tests (6)
Matching\CandidateSetTest.cs (1)
399
public IComparer<Endpoint>
Comparer
=> EndpointMetadataComparer<TestMetadata>.Default;
Matching\DfaMatcherBuilderTest.cs (3)
3587
public IComparer<Endpoint>
Comparer
=> EndpointMetadataComparer<TestMetadata1>.Default;
3629
public IComparer<Endpoint>
Comparer
=> EndpointMetadataComparer<TestMetadata2>.Default;
3657
public IComparer<Endpoint>
Comparer
=> EndpointMetadataComparer<TestMetadata1>.Default;
Matching\EndpointComparerTest.cs (2)
263
public IComparer<Endpoint>
Comparer
=> EndpointMetadataComparer<TestMetadata1>.Default;
272
public IComparer<Endpoint>
Comparer
=> EndpointMetadataComparer<TestMetadata2>.Default;
4 references to Comparer
Microsoft.AspNetCore.Routing (3)
Matching\EndpointComparer.cs (1)
35
_comparers[i + 2] = policies[i].
Comparer
;
Matching\EndpointMetadataComparer.cs (2)
40
.Select(p => p.
Comparer
)
70
/// Useful for implementing <see cref="IEndpointComparerPolicy.
Comparer
"/>.
Microsoft.AspNetCore.Routing.Tests (1)
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (1)
622
Array.Sort(endpoints, (policy as IEndpointComparerPolicy).
Comparer
);