Beispiel #1
0
        private void BuildSecurityCacheProviders(SecurityCacheProviderData securityProviderData)
        {
            ConfigurationNode securityProviderNode = NodeCreationService.CreateNodeByDataType(securityProviderData.GetType(), new object[] { securityProviderData });

            if (null == securityProviderNode)
            {
                LogNodeMapError(securityCacheProviderCollectionNode_, securityProviderData.GetType());
                return;
            }
            if (securityProviderNode.Name == settings.DefaultSecurityCacheProviderName)
            {
                defaultSecurityCacheProviderNode = (SecurityCacheProviderNode)securityProviderNode;
            }
            securityCacheProviderCollectionNode_.AddNode(securityProviderNode);
        }
 private void OnSecurityCacheDefaultProviderRemoved(object sender, ConfigurationNodeChangedEventArgs args)
 {
     this.defaultSecurityCacheProviderNode = null;
 }
 private void OnSecurityCacheDefaultProviderRemoved(object sender, ConfigurationNodeChangedEventArgs args)
 {
     this.defaultSecurityCacheProviderNode = null;
 }
 private void BuildSecurityCacheProviders(SecurityCacheProviderData securityProviderData)
 {
     ConfigurationNode securityProviderNode = NodeCreationService.CreateNodeByDataType(securityProviderData.GetType(), new object[] { securityProviderData });
     if (null == securityProviderNode)
     {
         LogNodeMapError(securityCacheProviderCollectionNode_, securityProviderData.GetType());
         return;
     }
     if (securityProviderNode.Name == settings.DefaultSecurityCacheProviderName) defaultSecurityCacheProviderNode = (SecurityCacheProviderNode)securityProviderNode;
     securityCacheProviderCollectionNode_.AddNode(securityProviderNode);
 }