public async Task <KongConfiguration> GetConfiguration() { var response = await HttpClient.GetAsync("/"); var value = await response.Content.ReadAsStringAsync(); return(JsonConvert.DeserializeObject <KongConfiguration>(value)); }
public async Task <bool> KongIsReachable() { try { await HttpClient.GetAsync("/"); } catch { return(false); } return(true); }
public async Task <bool> KongIsReachable() { try { await HttpClient.GetAsync("/"); } catch (Exception ex) { Log.Error(ex, "ERROR: Unable to contact Kong: {baseAddress}", HttpClient.BaseAddress); return(false); } return(true); }