示例#1
0
 static WebPath()
 {
     FixersByExt = new Dictionary<string, FixerConfigurationElement>();
     var section = (StorageConfigurationSection)ConfigurationManager.GetSection(Schema.SECTION_NAME);
     if (section != null)
     {
         foreach (FixerConfigurationElement fixer in section.Fixers.Cast<FixerConfigurationElement>())
         {
             FixerConfigurationElement fixer1 = fixer;
             fixer.Extension
                 .Split(' ')
                 .Select(ext => ext.Trim().ToLowerInvariant())
                 .Where(ext => !string.IsNullOrEmpty(ext))
                 .ToList()
                 .ForEach(ext => FixersByExt[ext] = fixer1);
         }
         Appender = section.Appenders.Cast<AppenderConfigurationElement>().FirstOrDefault();
     }
 }
示例#2
0
 public void Add(AppenderConfigurationElement element)
 {
     BaseAdd(element);
 }
 public void Add(AppenderConfigurationElement element)
 {
     BaseAdd(element);
 }