Share via


EndpointMetadataComparer<TMetadata> Class

Definition

A base class for IComparer<T> implementations that use a specific type of metadata from Metadata for comparison. Useful for implementing Comparer.

generic <typename TMetadata>
 where TMetadata : classpublic ref class EndpointMetadataComparer abstract : System::Collections::Generic::IComparer<Microsoft::AspNetCore::Http::Endpoint ^>
public abstract class EndpointMetadataComparer<TMetadata> : System.Collections.Generic.IComparer<Microsoft.AspNetCore.Http.Endpoint> where TMetadata : class
type EndpointMetadataComparer<'Metadata (requires 'Metadata : null)> = class
    interface IComparer<Endpoint>
Public MustInherit Class EndpointMetadataComparer(Of TMetadata)
Implements IComparer(Of Endpoint)

Type Parameters

TMetadata

The type of metadata to compare. Typically this is a type of metadata related to the application concern being handled.

Inheritance
EndpointMetadataComparer<TMetadata>
Implements

Constructors

EndpointMetadataComparer<TMetadata>()

Fields

Default

A default instance of the EndpointMetadataComparer.

Methods

Compare(Endpoint, Endpoint)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

CompareMetadata(TMetadata, TMetadata)

Compares two TMetadata instances.

GetMetadata(Endpoint)

Gets the metadata of type TMetadata from the provided endpoint.

Applies to