/// <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); }
/// <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); }