Ejemplo n.º 1
0
 /// <summary>
 /// <para>Adds an <see cref="HashProviderData"/> into the collection.</para>
 /// </summary>
 /// <param name="providerData">
 /// <para>The <see cref="HashProviderData"/> to add. The value can not be a <see langword="null"/> reference (Nothing in Visual Basic).</para>
 /// </param>
 /// <remarks>
 /// <para>If a reference already exists in the collection by <seealso cref="ProviderData.Name"/>, it will be replaced with the new reference.</para>
 /// </remarks>
 /// <exception cref="System.ArgumentNullException">
 /// <para><paramref name="providerData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
 /// <para>- or -</para>
 /// <para><seealso cref="ProviderData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
 /// </exception>
 public void Add(HashProviderData providerData)
 {
     AddProvider(providerData);
 }
Ejemplo n.º 2
0
 public TestCryptographyConfigurationView(HashProviderData data)
     : base(new ConfigurationContext(new ConfigurationDictionary()))
 {
     this.data = data;
 }
 /// <summary>
 /// <para>Adds an <see cref="HashProviderData"/> into the collection.</para>
 /// </summary>
 /// <param name="providerData">
 /// <para>The <see cref="HashProviderData"/> to add. The value can not be a <see langword="null"/> reference (Nothing in Visual Basic).</para>
 /// </param>
 /// <remarks>
 /// <para>If a reference already exists in the collection by <seealso cref="ProviderData.Name"/>, it will be replaced with the new reference.</para>
 /// </remarks>
 /// <exception cref="System.ArgumentNullException">
 /// <para><paramref name="providerData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
 /// <para>- or -</para>
 /// <para><seealso cref="ProviderData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
 /// </exception>
 public void Add(HashProviderData providerData)
 {
     AddProvider(providerData);
 }
Ejemplo n.º 4
0
 protected IHashProvider CreateProvider(HashProviderData providerData)
 {
     IHashProvider provider = GetProvider();
     provider.Initialize(new TestCryptographyConfigurationView(providerData));
     return provider;
 }