示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="XmlEncrypter" /> class.
        /// </summary>
        /// <param name="dataProtector">The data protector.</param>
        /// <param name="registryStore">The registry store.</param>
        public XmlEncrypter(IDataProtector dataProtector, IRegistryStore registryStore)
        {
            Ensure.That(dataProtector).IsNotNull();
            Ensure.That(registryStore).IsNotNull();

            _dataProtector = dataProtector;
            _registryStore = registryStore;

            HasPassPhrase = ReadPassPhraseHash().Any();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectionSettingsEncrypter" /> class.
 /// </summary>
 /// <param name="dataProtector">The data protector.</param>
 /// <param name="registryStore">The registry store.</param>
 public ConnectionSettingsEncrypter(IDataProtector dataProtector, IRegistryStore registryStore)
     : base(dataProtector, registryStore)
 {
 }