static void Main(string[] args) { ProjectFileFinder projectFileFinder = new ProjectFileFinder("E:\\Server"); projectFileFinder.findProjects(); List <string> fileNames = projectFileFinder.projectFiles; foreach (string file in fileNames) { Console.WriteLine(file); } }
void getProjectsList(Message msg) { ProjectFileFinder projectFileFinder = new ProjectFileFinder(loader.rootPath); projectFileFinder.findProjects(); List <string> fileNames = projectFileFinder.projectFiles; Message response = MessageGenerator.GetProjectsReplyMessage(fileNames, msg.src, loader.localServiceUrl); Sender sender = new Sender(response.dst, response.src); sender.PostMessage(response); }