Beispiel #1
0
        // Methods
        public void Add(string key)
        {
            #region Contracts

            if (string.IsNullOrEmpty(key) == true)
            {
                throw new ArgumentNullException();
            }

            #endregion

            // Repository
            _repository.Add(key);
        }
Beispiel #2
0
        // Methods
        public void Add(string groupName)
        {
            #region Contracts

            if (string.IsNullOrEmpty(groupName) == true)
            {
                throw new ArgumentNullException();
            }

            #endregion

            lock (_syncRoot)
            {
                // Cache
                _cacheGroupName     = null;
                _cacheGroupInstance = null;

                // Repository
                _repository.Add(groupName);
            }
        }