You are viewing an old version of this content. View the current version.
Compare with Current View Version History
Version 1 Next »
The HashRing implementation as a generic class
//Fields SortedDictionary<UInt32, HashRingLocation<T>> _locations; //Properties private SortedDictionary<UInt32, HashRingLocation<T>> LocationDictionary { get { _locations = _locations ?? new SortedDictionary<uint, HashRingLocation<T>>(); return _locations; } } public List<HashRingLocation<T>> Locations { get { return LocationDictionary.Values.ToList() /// The locations collection; } }