Example #1
0
        /// <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);
        }
Example #2
0
        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);
        }