private async Task <HealthResponse> CheckWithBaseClient(string resourceName, IBaseClient baseClient) { try { var response = await baseClient.GetServiceHealthAsync(); return(response); } catch (Exception e) { return(new HealthResponse { Resource = resourceName, Status = HealthResponse.StatusEnum.Error, Message = $"{baseClient.BaseUri} {e.ToLogString(true)}" }); } }