Example #1
0
        /// <summary>
        /// Add a HashRingLocation to the HashRing
        /// </summary>
        /// <param name="location">the HashRingLocation</param>
        public void AddLocation(IHashRingLocation <T> location)
        {
            location.ReceivedItem += Location_ReceivedItem;

            LocationDictionary.Add(location.Key, location);
        }
Example #2
0
 /// <summary>
 /// Remove the locations and remap the items it contains
 /// </summary>
 /// <param name="item">the item for the location</param>
 public void RemoveLocation(IHashRingLocation <T> location)
 {
     LocationDictionary.Remove(location.Key);
 }