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"
|
TextProperty="bathingSite" SelectedIndex="2"
|
||||||
SlotSelect=@OnSlotSelect AppointmentSelect=@OnAppointmentSelect AppointmentRender=@OnAppointmentRender
|
SlotSelect=@OnSlotSelect AppointmentSelect=@OnAppointmentSelect AppointmentRender=@OnAppointmentRender
|
||||||
AppointmentMove=@OnAppointmentMove >
|
AppointmentMove=@OnAppointmentMove >
|
||||||
<RadzenDayView />
|
<RadzenDayView StartTime="TimeSpan.Zero" EndTime="TimeSpan.FromDays(1)" />
|
||||||
<RadzenWeekView />
|
<RadzenWeekView StartTime="TimeSpan.Zero" EndTime="TimeSpan.FromDays(1)" />
|
||||||
<RadzenMonthView />
|
<RadzenMonthView />
|
||||||
<RadzenYearPlannerView />
|
<RadzenYearPlannerView />
|
||||||
<RadzenYearTimelineView />
|
<RadzenYearTimelineView />
|
||||||
|
@ -139,6 +139,11 @@ public partial class SouthernWaterApi
|
|||||||
_logger.LogError(e, "HTTP Exception while loading page [{}], waiting {} before retrying", page, Static.Interval);
|
_logger.LogError(e, "HTTP Exception while loading page [{}], waiting {} before retrying", page, Static.Interval);
|
||||||
await Task.Delay(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;
|
return parsedPage;
|
||||||
|
Loading…
Reference in New Issue
Block a user