/// <summary> /// Register the runner with the coordinator /// </summary> /// <param name="publicKey">SSH Public Key</param> /// <param name="token">Token</param> /// <returns>Token</returns> public static List <RunnerInfo> GetRunners() { var query = "private_token=" + Uri.EscapeDataString(Config.GitLabPrivateToken) + "&url=" + Uri.EscapeDataString(Config.GitLabEndpoint); HttpStatusCode status; var response = WebAPI.GET(APIEndpoint + "/runners" + query, string.Empty, out status); if (response == null) { return(null); } try { return(fastJSON.JSON.ToObject <List <RunnerInfo> >(response)); } catch (Exception) { return(null); } }