I have actually created a simple HTTP server with C# to help test our online integration at WB Games. So I am trying to call ‘ProcessEnding()’ and return a response that this was successful. Sometimes the server doesn’t send a response (times out on my end), and sometimes it does. I was assuming it was because the ProcessEnding response wasn’t occurring immediately.
var gracefulShutdown = GameLiftServerAPI.ProcessEnding();
Globals.status = "Terminated";
Message message = new Message
msg = "Terminating game server.",
error = null
string data = JsonConvert.SerializeObject(message);
return new Response("200", "application/json", data);
Here, no matter where I place
Environment.Exit(0); my response won’t be delivered I assume. Without it, I was getting the
Not sure if this is an odd workflow for you, but if you have any suggestions I appreciate it!