/// <summary> /// Add or Update a key for a sector /// </summary> /// <param name="keySet"></param> public void AddOrUpdateSectorKeySet(SectorKeySet keySet) { if (keySet == null) { throw new ArgumentNullException(nameof(keySet)); } if (!keySet.IsValid) { throw new ArgumentException($"KeySet with Sector {keySet.Sector}, KeyType {keySet.KeyType} is invalid", nameof(keySet)); } Reader.AddOrUpdateSectorKeySet(keySet); }
public void AddOrUpdateSectorKeySet(SectorKeySet keySet) { if (keySet == null) { throw new ArgumentNullException(nameof(keySet)); } if (!keySet.IsValid) { throw new ArgumentException($"KeySet with Sector {keySet.Sector}, KeyType {keySet.KeyType} is invalid", nameof(keySet)); } // Add or update the sector key in the map keyMap[new SectorKey(keySet.Sector, (InternalKeyType)keySet.KeyType)] = keySet.Key; }
/// <summary> /// Add or Update a key for a sector /// </summary> /// <param name="keySet"></param> public void AddOrUpdateSectorKeySet(SectorKeySet keySet) { if (keySet == null) throw new ArgumentNullException(nameof(keySet)); if (!keySet.IsValid) { throw new ArgumentException($"KeySet with Sector {keySet.Sector}, KeyType {keySet.KeyType} is invalid", nameof(keySet)); } Reader.AddOrUpdateSectorKeySet(keySet); }