@@ -108,10 +108,18 @@ private async System.Threading.Tasks.Task LoadPerServerDataAsync()
108108 var serverId = GetSelectedServerId ( ) ;
109109 if ( serverId == 0 || _dataService == null ) return ;
110110
111- await LoadUtilizationAsync ( serverId ) ;
112- await LoadDatabaseResourcesAsync ( serverId ) ;
113- await LoadApplicationConnectionsAsync ( serverId ) ;
114- await LoadDatabaseSizesAsync ( serverId ) ;
111+ await System . Threading . Tasks . Task . WhenAll (
112+ LoadUtilizationAsync ( serverId ) ,
113+ LoadDatabaseResourcesAsync ( serverId ) ,
114+ LoadApplicationConnectionsAsync ( serverId ) ,
115+ LoadDatabaseSizesAsync ( serverId ) ,
116+ LoadStorageGrowthAsync ( serverId ) ,
117+ LoadIdleDatabasesAsync ( serverId ) ,
118+ LoadTempdbSummaryAsync ( serverId ) ,
119+ LoadWaitCategorySummaryAsync ( serverId ) ,
120+ LoadExpensiveQueriesAsync ( serverId ) ,
121+ LoadMemoryGrantEfficiencyAsync ( serverId )
122+ ) ;
115123 }
116124
117125 private async System . Threading . Tasks . Task LoadUtilizationAsync ( int serverId )
@@ -132,6 +140,13 @@ private async System.Threading.Tasks.Task LoadUtilizationAsync(int serverId)
132140 DbSizeChart . ItemsSource = await _dataService . GetDatabaseSizeSummaryAsync ( serverId ) ;
133141 ProvisioningTrendGrid . ItemsSource = await _dataService . GetProvisioningTrendAsync ( serverId ) ;
134142 }
143+ else
144+ {
145+ TopTotalGrid . ItemsSource = null ;
146+ TopAvgGrid . ItemsSource = null ;
147+ DbSizeChart . ItemsSource = null ;
148+ ProvisioningTrendGrid . ItemsSource = null ;
149+ }
135150 }
136151 catch ( Exception ex )
137152 {
0 commit comments