Beispiel #1
0
        private void CreateHashProviderNode(HashProviderCollectionNode hashProviderCollectionNode, HashProviderData hashProviderData)
        {
            HashProviderNode hashProviderNode = NodeCreationService.CreateNodeByDataType(hashProviderData.GetType(), new object[] { hashProviderData }) as HashProviderNode;

            if (null == hashProviderNode)
            {
                LogNodeMapError(hashProviderCollectionNode, hashProviderData.GetType());
                return;
            }

            if (string.Compare(hashProviderNode.Name, cryptographySettings.DefaultHashProviderName) == 0)
            {
                defaultHashProviderNode = hashProviderNode;
            }

            hashProviderCollectionNode.AddNode(hashProviderNode);
        }
		private void CreateHashProviderNode(HashProviderCollectionNode hashProviderCollectionNode, HashProviderData hashProviderData)
		{
			HashProviderNode hashProviderNode = NodeCreationService.CreateNodeByDataType(hashProviderData.GetType(), new object[] { hashProviderData }) as HashProviderNode;
			if (null == hashProviderNode)
			{
				LogNodeMapError(hashProviderCollectionNode, hashProviderData.GetType());
				return;
			}

			if (string.Compare(hashProviderNode.Name, cryptographySettings.DefaultHashProviderName) == 0)
			{
				defaultHashProviderNode = hashProviderNode;
			}

			hashProviderCollectionNode.AddNode(hashProviderNode);
		}
 private void OnDefaultHashProviderNodeRemoved(object sender, ConfigurationNodeChangedEventArgs e)
 {
     this.defaultHashProviderNode = null;
 }
 private void OnDefaultHashProviderNodeRemoved(object sender, ConfigurationNodeChangedEventArgs e)
 {
     this.defaultHashProviderNode = null;
 }