예제 #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);
        }
예제 #2
0
 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);
 }