コード例 #1
0
ファイル: HostedGame.cs プロジェクト: traemyn/OCTGN
 /// <summary>
 ///   This happens when the Octgn.Server in StandAloneServer stops. This means eather all of the users disconnected, or it crashed. Eaither way, its unjoinable at this point.
 /// </summary>
 /// <param name="sender"> Who knows </param>
 /// <param name="e"> Jesus </param>
 private void StandAloneAppExited(object sender, EventArgs e)
 {
     StandAloneApp.Exited -= StandAloneAppExited;
     if (HostedGameDone != null)
     {
         HostedGameDone.Invoke(this, e);
     }
     Console.WriteLine("Game Log[{0}]{1}{2}End Game Log[{0}]", Port, Environment.NewLine, GameLog);
 }
コード例 #2
0
ファイル: HostedGame.cs プロジェクト: totalgit/OCTGN
 /// <summary>
 ///   This happens when the Octgn.Server in StandAloneServer stops. This means eather all of the users disconnected, or it crashed. Eaither way, its unjoinable at this point.
 /// </summary>
 /// <param name="sender"> Who knows </param>
 /// <param name="e"> Jesus </param>
 private void StandAloneAppExited(object sender, EventArgs e)
 {
     StandAloneApp.CancelErrorRead();
     StandAloneApp.CancelOutputRead();
     StandAloneApp.Exited             -= StandAloneAppExited;
     StandAloneApp.OutputDataReceived -= StandAloneAppOnOutputDataReceived;
     StandAloneApp.ErrorDataReceived  -= StandAloneAppOnErrorDataReceived;
     if (HostedGameDone != null)
     {
         HostedGameDone.Invoke(this, e);
     }
     Console.WriteLine("Game Log[{0}]{1}{2}End Game Log[{0}]", Port, Environment.NewLine, GameLog);
 }
コード例 #3
0
ファイル: HostedGameProcess.cs プロジェクト: jaras/OCTGN
 private void StandAloneAppExited(object sender, EventArgs e)
 {
     _process.Exited -= StandAloneAppExited;
     HostedGameDone?.Invoke(this, e);
     Console.WriteLine("Game Log[{0}]{1}{2}End Game Log[{0}]", HostedGame.Port, Environment.NewLine, GameLog);
 }