Exemple #1
0
 public HealthChecker(string config)
 {
     // Some additional work to be done to create different service checkers and
     // provide a mapping between services and service checkers.
     httpServices       = JsonConvert.DeserializeObject <List <HttpService> >(config);
     httpServiceChecker = new HttpServiceChecker(new HttpClient());
 }
Exemple #2
0
 public HealthChecker(List <HttpService> httpServices)
 {
     this.httpServices  = httpServices;
     httpServiceChecker = new HttpServiceChecker(new HttpClient());
 }