// Methods public void Add(string key) { #region Contracts if (string.IsNullOrEmpty(key) == true) { throw new ArgumentNullException(); } #endregion // Repository _repository.Add(key); }
// 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); } }