Example #1
0
 public IEnumerable <QueueId> GetQueuesForRange(IRingRange range)
 {
     foreach (QueueId queueId in hashRing.GetAllRingMembers())
     {
         if (range.InRange(queueId.GetUniformHashCode()))
         {
             yield return(queueId);
         }
     }
 }
Example #2
0
        /// <inheritdoc/>
        public IEnumerable <QueueId> GetQueuesForRange(IRingRange range)
        {
            var ls = new List <QueueId>();

            foreach (QueueId queueId in hashRing.GetAllRingMembers())
            {
                if (range.InRange(queueId.GetUniformHashCode()))
                {
                    ls.Add(queueId);
                }
            }

            return(ls);
        }