Beispiel #1
0
 public MainWindow()
 {
     InitializeComponent();
     this.client                        = new MonitorServiceClient();
     NbRequests.Content                 = client.GetNbRequest();
     NbCacheRequests.Content            = client.GetNbCacheRequest();
     CurrentCacheExpirationTime.Content = client.GetCacheExpirationTime();
 }
Beispiel #2
0
 private void RefreshButton_Click(object sender, RoutedEventArgs e)
 {
     NbRequests.Content      = client.GetNbRequest();
     NbCacheRequests.Content = client.GetNbCacheRequest();
     CacheMonitoring.Items.Clear();
     foreach (var i in client.GetCachedCities())
     {
         CacheMonitoring.Items.Add(i);
     }
 }