async Task<bool> CheckIfAlive(ServiceConfig config) { using var httpClient = new HttpClient(); HttpResponseMessage response = await httpClient.GetAsync(config.GetHostLinkFrom(this._config.TestingSystemWorker) + "/health"); if (response.IsSuccessStatusCode) { string apiResponse = await response.Content.ReadAsStringAsync(); HealthResponse obj = JsonConvert.DeserializeObject<HealthResponse>(apiResponse); return obj.Status == "Healthy"; } else { return false; } }