예제 #1
0
        // -----------< Helper Function - Assemble message for posting >------------
        private CsMessage AssembleMsg()
        {
            CsMessage msg = new CsMessage();

            msg.add("SubDir", SubDir);
            msg.add("Directory", WDirectory);
            msg.add("path", WDirectory);
            //msg.add("OutputPath", OutputPath);
            for (int i = 0; i < Patterns.Count(); i++)
            {
                msg.add("Pattern" + (i + 1), Patterns[i]);
            }
            for (int i = 0; i < Regexes.Count(); i++)
            {
                msg.add("Regex" + (i + 1), Regexes[i]);
            }
            if (Analysers != null)
            {
                for (int i = 0; i < Analysers.Count(); i++)
                {
                    msg.add("Analyser" + (i + 1), Analysers[i]);
                }
            }
            return(msg);
        }
예제 #2
0
 public bool Supports(string extension)
 {
     return(Patterns.Count(x => x.ToLower().Equals(extension)) > 0);
 }