[성현모] webclient timeout 예외처리

This commit is contained in:
SHM
2025-11-21 14:25:38 +09:00
parent 70f20e3954
commit e5262fb975
3 changed files with 15 additions and 5 deletions

View File

@ -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();
} }

View File

@ -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;
} }