public int CompareTo(IElasticsearchIndexContributor other) { if (Order == other.Order) { return(1); // ensures that duplicates with the same order value are still added to the set } return(Order.CompareTo(other.Order)); }
protected void AddContributor(IElasticsearchIndexContributor contributor) { _contributors.Add(contributor); }
public int CompareTo(IElasticsearchIndexContributor other) { if (Order == other.Order) return 1; // ensures that duplicates with the same order value are still added to the set return Order.CompareTo(other.Order); }