Ejemplo n.º 1
0
 /// <summary>
 /// This sends a single ping to designate that the Game Server is alive and healthy.
 /// Failure to send pings within the configured thresholds will result in the GameServer
 /// being marked as Unhealthy.
 /// </summary>
 public void Health()
 {
     AgonesSdkClient.EmptyPost("http://localhost:59358/health");
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This tells Agones to shut down the currently running game server. The GameServer
 /// state will be set Shutdown and the backing Pod will be deleted, if they have not
 /// shut themselves down already.
 /// </summary>
 public void Shutdown()
 {
     AgonesSdkClient.EmptyPost("http://localhost:59358/shutdown");
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This tells Agones that the Game Server is ready to take player connections.
 /// Once a Game Server has specified that it is Ready, then the Kubernetes GameServer
 /// record will be moved to the Ready state, and the details for its public address
 /// and connection port will be populated.
 /// </summary>
 public void Ready()
 {
     AgonesSdkClient.EmptyPost("http://localhost:59358/ready");
 }