/* Send request to analyze a list of projects to a server */ public void Analyze(Dictionary <string, List <string> > selectedProjects) { subscribe(); foreach (string server in selectedProjects.Keys) { Message msg = MessageGenerator. GetDepAnalyzeMessage(selectedProjects[server], server, loader.localServiceUrl); Sender sender = new Sender(msg.dst, msg.src); sender.PostMessage(msg); } }
static void Main(string[] args) { // This is called when a Dep Anal Message is received ConfigurationLoader _loader = new ConfigurationLoader("E:/DependencyAnalyzer/Server1.xml"); _loader.Load(); DependencyAgent depAnal = new DependencyAgent(_loader); List <string> selectedProjectPaths = new List <string>(); selectedProjectPaths.Add("E:/DependencyAnalyzer/Server1.sln"); Message msg = MessageGenerator.GetDepAnalyzeMessage(selectedProjectPaths, _loader.localServiceUrl, _loader.localServiceUrl); depAnal.DepAnalize(msg); }