public CFFSourceAndConfidence[] GetHandlers(FileInfo aFile, CFFFileList aOtherFiles)
        {
            List <CFFSourceAndConfidence> ret = new List <CFFSourceAndConfidence>();

            //
            foreach (CFFPlugin plugin in iPlugins)
            {
                try
                {
                    CFFSourceAndConfidence conf = plugin.GetConfidence(aFile, aOtherFiles);
                    //
                    if (conf.IsSupported)
                    {
                        ret.Add(conf);
                    }
                }
                catch (Exception e)
                {
                    iEngine.Trace("CFFPrimerRegistry.GetHandlers() - aFile: {0}, message: {1}, stack: {2}", aFile.FullName, e.Message, e.StackTrace);
                }
            }
            //
            return(ret.ToArray());
        }
Beispiel #2
0
 public abstract CFFSourceAndConfidence GetConfidence(FileInfo aFile, CFFFileList aOtherFiles);