Ejemplo n.º 1
0
 public void ServerDictionary()
 {
     UptrendsApi api = new UptrendsApi();
     try
     {
         List<Uptrends.Server> serverResponse = api.serverList();
         foreach (Uptrends.Server sr in serverResponse)
         {
             if (!serverValuePairs.ContainsKey(sr.CheckPointID))
             {
                 serverValuePairs.TryAdd(sr.CheckPointID, sr.CheckPointName);
             }
         }
     } catch (Exception){
         //log exception
     }
 }
Ejemplo n.º 2
0
 public void ProbeDictionary()
 {
     UptrendsApi api = new UptrendsApi();
     try
     {
         List<Uptrends.Probe.Probe> response = api.allProbes();
         foreach (Uptrends.Probe.Probe pr in response)
         {
             if (!probeValuePairs.ContainsKey(pr.Guid))
             {
                 probeValuePairs.TryAdd(pr.Guid, pr.Name);
             }
         }
     }
     catch (Exception)
     {
         //log exception
     }
 }