1111import com .microsoft .azure .toolkit .lib .appservice .model .PricingTier ;
1212import com .microsoft .azure .toolkit .lib .appservice .service .impl .WebApp ;
1313import com .microsoft .azure .toolkit .lib .auth .AzureAccount ;
14+ import com .microsoft .azure .toolkit .lib .common .task .AzureTask ;
1415import com .microsoft .azure .toolkit .lib .common .task .AzureTaskManager ;
1516import com .microsoft .azure .toolkit .lib .resource .AzureGroup ;
1617import com .microsoft .azuretools .core .mvp .ui .base .MvpPresenter ;
@@ -51,7 +52,7 @@ public void onLoadAppList() {
5152 return ;
5253 }
5354 getMvpView ().renderWebAppOnLinuxList (webAppList );
54- }));
55+ }, AzureTask . Modality . ANY ));
5556 }
5657
5758 /**
@@ -65,7 +66,7 @@ public void onRefreshList() {
6566 return ;
6667 }
6768 getMvpView ().renderWebAppOnLinuxList (webAppList );
68- }));
69+ }, AzureTask . Modality . ANY ));
6970 }
7071
7172 /**
@@ -79,7 +80,7 @@ public void onLoadSubscriptionList() {
7980 return ;
8081 }
8182 getMvpView ().renderSubscriptionList (subscriptions );
82- }));
83+ }, AzureTask . Modality . ANY ));
8384 }
8485
8586 /**
@@ -95,7 +96,7 @@ public void onLoadResourceGroup(String sid) {
9596 return ;
9697 }
9798 getMvpView ().renderResourceGroupList (resourceGroupList );
98- }));
99+ }, AzureTask . Modality . ANY ));
99100 }
100101
101102 /**
@@ -111,7 +112,7 @@ public void onLoadLocationList(String sid) {
111112 return ;
112113 }
113114 getMvpView ().renderLocationList (locationList );
114- }));
115+ }, AzureTask . Modality . ANY ));
115116
116117 }
117118
@@ -128,7 +129,7 @@ public void onLoadPricingTierList() {
128129 getMvpView ().renderPricingTierList (pricingTierList .stream ()
129130 .filter (item -> !item .equals (PricingTier .FREE_F1 ) && !item .equals (PricingTier .SHARED_D1 ))
130131 .collect (Collectors .toList ()));
131- }));
132+ }, AzureTask . Modality . ANY ));
132133 }
133134
134135 /**
@@ -147,7 +148,7 @@ public void onLoadAppServicePlan(String sid, String rg) {
147148 return ;
148149 }
149150 getMvpView ().renderAppServicePlanList (appServicePlans );
150- }));
151+ }, AzureTask . Modality . ANY ));
151152 }
152153
153154 /**
@@ -166,6 +167,6 @@ public void onLoadAppServicePlan(String sid) {
166167 return ;
167168 }
168169 getMvpView ().renderAppServicePlanList (appServicePlans );
169- }));
170+ }, AzureTask . Modality . ANY ));
170171 }
171172}
0 commit comments