Exemplo n.º 1
0
        public static void ComputeResults(Results results, ICollection files, Hashtable htBin )
        {
            
            ArrayList customVisit = new ArrayList();
            ArrayList communityVisit = new ArrayList();

            foreach (AbstractPlugin plugin in plugins)
            {
                if (plugin.UsesCommunityVisitor)
                {
                    communityVisit.Add(plugin);
                }
                else
                {
                    customVisit.Add(plugin);
                }
            }

            foreach (AbstractPlugin plugin in customVisit)
            {
                plugin.ComputeResults(results, files, htBin, results.Filters);
            }
            if (communityVisit.Count > 0)
            {
                Visit visit = new Visit();

                // Gather collectors from plugins.
                foreach (AbstractPlugin plugin in communityVisit)
                {
                    visit.Collectors.Register(plugin.Name, plugin.CreateCollector());
                }

                // Visit Assemblies.
                visit.DoScan(files, htBin, results.Filters);

                // Give Plugin results of scanning
                foreach (AbstractPlugin plugin in communityVisit)
                {
                    plugin.SetOutputTable(visit.Collectors[plugin.Name]);
                }
            }
        }
Exemplo n.º 2
0
 public virtual void ComputeResults(Results results, ICollection files, Hashtable htBin, ICollection filters) { }
Exemplo n.º 3
0
 public virtual void Export( Results results ){}
Exemplo n.º 4
0
 public ExportData(Results results, string outputDirectory )
 {
     m_results = results;
     m_outputDirectory = outputDirectory;
 }