public static void StartDataServer(string id, int port) { consoles.Add(Process.Start("DataServer.exe", id + " " + port)); IDataServerToPM dataServer = (IDataServerToPM)Activator.GetObject( typeof(IDataServerToPM), Helper.GetUrl(id, port) ); processes[id] = dataServer; SendMetadataLocations(dataServer); }
public static void FreezeProcess(string id) { IDataServerToPM server = (IDataServerToPM)GetProcess(id); server.Freeze(); }