コード例 #1
0
ファイル: WebPath.cs プロジェクト: ridhouan/teamlab.v6.5
 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);
 }
コード例 #3
0
 public void Add(AppenderConfigurationElement element)
 {
     BaseAdd(element);
 }