Beispiel #1
0
 public override void InitializeComponent(ICore core)
 {
     this.LibraryHierarchyCache = core.Components.LibraryHierarchyCache;
     this.Configuration         = core.Components.Configuration;
     this.Configuration.GetElement <TextConfigurationElement>(
         FilterParserConfiguration.SECTION,
         FilterParserConfiguration.SEARCH_NAMES
         ).ConnectValue(value =>
     {
         var reset        = this.SearchNames != null;
         this.SearchNames = FilterParserConfiguration.GetSearchNames(value);
         if (reset)
         {
             //As the results of searches are now different we should clear the cache.
             this.LibraryHierarchyCache.Reset();
         }
     });
     base.InitializeComponent(core);
 }
Beispiel #2
0
 public IEnumerable <ConfigurationSection> GetConfigurationSections()
 {
     return(FilterParserConfiguration.GetConfigurationSections());
 }