[성현모] webclient timeout 예외처리
This commit is contained in:
@ -71,6 +71,11 @@
|
|||||||
response = await _cpMetaService.GetWbmsMetaByProductID(SearchProductID, ServerAddress, outValue);
|
response = await _cpMetaService.GetWbmsMetaByProductID(SearchProductID, ServerAddress, outValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(response == null)
|
||||||
|
{
|
||||||
|
response = new Response_GetWbmsMeta();
|
||||||
|
}
|
||||||
|
|
||||||
await Task.Delay(300);
|
await Task.Delay(300);
|
||||||
PopupService.CloseIndicator();
|
PopupService.CloseIndicator();
|
||||||
}
|
}
|
||||||
@ -85,6 +90,11 @@
|
|||||||
response = await _cpMetaService.GetWbmsMetaByMacAddress(SearchProductMacAddress, ServerAddress, outValue);
|
response = await _cpMetaService.GetWbmsMetaByMacAddress(SearchProductMacAddress, ServerAddress, outValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (response == null)
|
||||||
|
{
|
||||||
|
response = new Response_GetWbmsMeta();
|
||||||
|
}
|
||||||
|
|
||||||
await Task.Delay(300);
|
await Task.Delay(300);
|
||||||
PopupService.CloseIndicator();
|
PopupService.CloseIndicator();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
public class Response_GetWbmsMeta
|
public class Response_GetWbmsMeta
|
||||||
{
|
{
|
||||||
public List<tWbms> Wbms { get; set; }
|
public List<tWbms> Wbms { get; set; } = new List<tWbms>();
|
||||||
public string Result { get; set; } = string.Empty;
|
public string Result { get; set; } = string.Empty;
|
||||||
public string Message { get; set; } = string.Empty;
|
public string Message { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user