示例#1
0
        static FilterFactory()
        {
            FilterCache filter_cache = new FilterCache (filter_cache_dir);
            ReflectionFu.ScanEnvironmentForAssemblies ("BEAGREP_FILTER_PATH", PathFinder.FilterDir,
                                   delegate (Assembly a) {
                                       int n = ScanAssemblyForFilters (a, filter_cache);
                                       Logger.Log.Debug ("Loaded {0} filter{1} from {2}",
                                                 n, n == 1 ? "" : "s", a.Location);
                                   });

            // FIXME: Up external filter version if external-filters.xml is modified

            // Check if cache is dirty and also update the cache on the disk
            cache_dirty = filter_cache.UpdateCache ();
        }
示例#2
0
        static FilterFactory()
        {
            FilterCache filter_cache = new FilterCache(filter_cache_dir);

            ReflectionFu.ScanEnvironmentForAssemblies("BEAGREP_FILTER_PATH", PathFinder.FilterDir,
                                                      delegate(Assembly a) {
                int n = ScanAssemblyForFilters(a, filter_cache);
                Logger.Log.Debug("Loaded {0} filter{1} from {2}",
                                 n, n == 1 ? "" : "s", a.Location);
            });

            // FIXME: Up external filter version if external-filters.xml is modified

            // Check if cache is dirty and also update the cache on the disk
            cache_dirty = filter_cache.UpdateCache();
        }