/// <summary>
        /// Creates an instance of <see cref="CacheManagerExtension"/> passing the current <see cref="CacheManager"/>'s fluent interface builder.
        /// </summary>
        /// <param name="context">The current <see cref="CacheManager"/>'s fluent interface builder.<br/>
        /// This interface must implement <see cref="ICachingConfigurationCacheManagerExtension"/>.</param>
        protected CacheManagerExtension(ICachingConfigurationCacheManager context)
        {
            contextExtension = context as ICachingConfigurationCacheManagerExtension;

            if (contextExtension == null) throw new ArgumentException(
                string.Format(CultureInfo.CurrentCulture, Resources.ExceptionParameterMustImplement, typeof(ICachingConfigurationCacheManagerExtension).FullName),
                "context");
        }
Beispiel #2
0
        /// <summary>
        /// Creates an instance of <see cref="CacheManagerExtension"/> passing the current <see cref="CacheManager"/>'s fluent interface builder.
        /// </summary>
        /// <param name="context">The current <see cref="CacheManager"/>'s fluent interface builder.<br/>
        /// This interface must implement <see cref="ICachingConfigurationCacheManagerExtension"/>.</param>
        protected CacheManagerExtension(ICachingConfigurationCacheManager context)
        {
            contextExtension = context as ICachingConfigurationCacheManagerExtension;

            if (contextExtension == null)
            {
                throw new ArgumentException(
                          string.Format(CultureInfo.CurrentCulture, Resources.ExceptionParameterMustImplement, typeof(ICachingConfigurationCacheManagerExtension).FullName),
                          "context");
            }
        }