コード例 #1
0
 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));
 }
コード例 #2
0
 protected void AddContributor(IElasticsearchIndexContributor contributor)
 {
     _contributors.Add(contributor);
 }
コード例 #3
0
        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);
        }