/// <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); }
/// <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); }
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); }