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); }
public IEnumerable <ConfigurationSection> GetConfigurationSections() { return(FilterParserConfiguration.GetConfigurationSections()); }