void StartServer(string PID, string serverURI, List <string> serverURIs, string msecPerRound, string numPlayers) { Thread t = new Thread(delegate() { StartServerDelegate remoteCallStartServer; remoteCallStartServer = new StartServerDelegate(processesPCS[PID].StartServer); IAsyncResult asyncResult = remoteCallStartServer.BeginInvoke(PID, serverURI, msecRound, numPlayers, serverURIs, null, null); asyncResult.AsyncWaitHandle.WaitOne(); }); t.Start(); }
public ServerThread(StartServerDelegate method) { this.method = method; }