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