Пример #1
0
        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();
        }
Пример #2
0
 public ServerThread(StartServerDelegate method)
 {
     this.method = method;
 }