public GenericOutcome ProcessReady(ProcessParameters procParameters)
        {
            processReady      = true;
            processParameters = procParameters;

            GenericOutcome result = httpClientInvoker.ProcessReady(procParameters.Port, procParameters.LogParameters.LogPaths).Result;

            Task.Run(() => StartHealthCheck());

            return(result);
        }
Ejemplo n.º 2
0
        public GenericOutcome ProcessReady(ProcessParameters procParameters)
        {
            processReady      = true;
            processParameters = procParameters;

            if (!networkInitialized)
            {
                return(new GenericOutcome(new GameLiftError(GameLiftErrorType.NETWORK_NOT_INITIALIZED)));
            }

            GenericOutcome result = sender.ProcessReady(processParameters.Port, processParameters.LogParameters.LogPaths);

            Task.Run(() => StartHealthCheck());

            return(result);
        }
Ejemplo n.º 3
0
 /**
  * Signals GameLift that the process is ready to receive GameSessions.
  * The onStartGameSession callback will be invoked when the server is bound to a GameSession. Game-property-dependent initialization (such as loading a
  * user-requested map) should take place at that time. The onHealthCheck callback is invoked asynchronously. There is no mechanism to
  * to destroy the resulting thread. If it does not complete in a given time period the server status will be reported as unhealthy.
  * @param processParameters The parameters required to successfully run the process.
  */
 public static GenericOutcome ProcessReady(ProcessParameters processParameters)
 {
     return(ServerState.Instance.ProcessReady(processParameters));
 }