[성현모] 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

@ -6,9 +6,9 @@
<RadzenDataGrid class="rz-shadow-1" TItem="TDataModel" Data="@DataList" GridLines="DataGridGridLines.Both" <RadzenDataGrid class="rz-shadow-1" TItem="TDataModel" Data="@DataList" GridLines="DataGridGridLines.Both"
AllowFiltering FilterMode="FilterMode.Simple" AllowColumnResize AllowFiltering FilterMode="FilterMode.Simple" AllowColumnResize
SelectionMode="DataGridSelectionMode.Single" Density="@Density.Default"> SelectionMode="DataGridSelectionMode.Single" Density="@Density.Default">
<Columns> <Columns>
@foreach (var col in typeof(TDataModel).GetProperties()) @foreach (var col in typeof(TDataModel).GetProperties())
{ {
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name"> <RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
<Template> <Template>
<span> <span>
@ -16,11 +16,11 @@
</span> </span>
</Template> </Template>
</RadzenDataGridColumn> </RadzenDataGridColumn>
} }
</Columns> </Columns>
</RadzenDataGrid> </RadzenDataGrid>
@code { @code {
[Parameter] [Parameter]
public IEnumerable<TDataModel> DataList { get; set; } public IEnumerable<TDataModel> DataList { get; set; }
} }

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