/// <summary> /// The possible provider configuration attributes are: /// connectionString: Specifies the database connection string. /// registryPath: Specifies the registry key path where the /// encryption symmetric key is stored. /// </summary> /// <param name="statePersistenceParameters">The collection of configuration information to be used by /// the persistence provider.</param> public void Init(NameValueCollection statePersistenceParameters) { _connectionString = statePersistenceParameters[ConfigConnectionString]; if (_connectionString == null) { throw new ApplicationException(Resource.ResourceManager.FormatMessage(Resource.Exceptions.RES_ExceptionSQLStatePersistenceProviderInit, ConfigConnectionString)); } string registryPath = statePersistenceParameters[ConfigRegistry]; if (registryPath == null) { registryPath = ConfigDefaultRegistryValue; } _cryptHelper = new CryptHelper(registryPath); }