catch http timeouts, show all day in calendar

This commit is contained in:
Andy Pack 2024-06-11 20:22:22 +01:00
parent a970012209
commit c337b5b6a1
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
2 changed files with 7 additions and 2 deletions

View File

@ -14,8 +14,8 @@ else
TextProperty="bathingSite" SelectedIndex="2"
SlotSelect=@OnSlotSelect AppointmentSelect=@OnAppointmentSelect AppointmentRender=@OnAppointmentRender
AppointmentMove=@OnAppointmentMove >
<RadzenDayView />
<RadzenWeekView />
<RadzenDayView StartTime="TimeSpan.Zero" EndTime="TimeSpan.FromDays(1)" />
<RadzenWeekView StartTime="TimeSpan.Zero" EndTime="TimeSpan.FromDays(1)" />
<RadzenMonthView />
<RadzenYearPlannerView />
<RadzenYearTimelineView />

View File

@ -139,6 +139,11 @@ public partial class SouthernWaterApi
_logger.LogError(e, "HTTP Exception while loading page [{}], waiting {} before retrying", page, Static.Interval);
await Task.Delay(Static.Interval);
}
catch (TaskCanceledException e)
{
_logger.LogError(e, "HTTP Timeout Exception while loading page [{}], waiting {} before retrying", page, Static.Interval);
await Task.Delay(1.5 * Static.Interval);
}
}
return parsedPage;