Example #1
0
        public async Task <JsonResult> StartServer(string serverName, string secretKey)
        {
            if (secretKey != Config.SecretCode)
            {
                return(Json(new GameServerResponceModel("F**k you.", true)));
            }

            return(Json(await _service.StartServer(serverName)));
        }
 /// <summary>
 /// Execute
 /// </summary>
 public override void Execute()
 {
     GameServerService.StartServer(ServerPort);
 }