public string Gather()
        {
            int remainingCount = MAX_COUNT;

            var resultStore = new SignatureStore();

            foreach (string filePath in new SampleProvider())
            {
                if (0 == remainingCount--)
                {
                    break;
                }
                string sig = SignatureExtractor.Extract(filePath);
                resultStore.RecordSignature(sig);
            }

            return(resultStore.GenerateReport());
        }
Example #2
0
        private static IReadOnlyList <ISignature> GetGraphForFile(string file)
        {
            var extractor = new SignatureExtractor();

            return(extractor.Extract(file));
        }