Exemplo n.º 1
0
        public CacheProfile GetCacheProfile(CacheProfiles cacheProfile)
        {
            var cacheProfileKey = cacheProfile.ToString().ToLowerInvariant();

            if (_cacheProfiles == null || !_cacheProfiles.ContainsKey(cacheProfileKey))
            {
                throw new ErrorditeCacheException("CacheProfile with key {0} does not exist.".FormatWith(cacheProfileKey));
            }

            return(_cacheProfiles[cacheProfileKey]);
        }
Exemplo n.º 2
0
 public ErrorditeCacheProfileNotFoundException(CacheProfiles cacheProfile)
     : base("CacheProfile with key {0} could not be found in cache configuration.".FormatWith(cacheProfile.ToString()))
 {
 }