public IEnumerable <QueueId> GetQueuesForRange(IRingRange range) { foreach (QueueId queueId in hashRing.GetAllRingMembers()) { if (range.InRange(queueId.GetUniformHashCode())) { yield return(queueId); } } }
/// <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); }