| | |
| | | /// <returns></returns>
|
| | | private void StartGetGatewayVersionThread()
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //先等个120秒吧,网关升级和网关完全重启需要很长时间
|
| | | int count = 12;
|
| | |
| | | //这个时候,不应该提示超时
|
| | | this.UpdateTimeOutRefresh();
|
| | |
|
| | | await Task.Delay(10000);
|
| | | System.Threading.Thread.Sleep(10000);
|
| | | }
|
| | | while (this.IsFinishUpdate == false)
|
| | | {
|
| | | //获取版本
|
| | | var result = await HdlGatewayLogic.Current.GetGatewayNewInfoAsync(this.upDatezbGateway, ShowErrorMode.NO);
|
| | | var result = HdlGatewayLogic.Current.GetGatewayInfo(this.upDatezbGateway, ShowErrorMode.NO);
|
| | | if (result != null)
|
| | | {
|
| | | break;
|
| | |
| | | //这个时候,不应该提示超时
|
| | | this.UpdateTimeOutRefresh();
|
| | |
|
| | | await Task.Delay(5000);
|
| | | System.Threading.Thread.Sleep(5000);
|
| | | }
|
| | | //已经能够获取数据
|
| | | this.ShowFinishMsg();
|