catch http timeouts, show all day in calendar
This commit is contained in:
parent
a970012209
commit
c337b5b6a1
@ -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 />
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user