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