You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -110,10 +104,6 @@ public IBackgroundTaskScheduler DeregisterAsyncRecurringTask<TTask>() where TTas
110
104
returnthis;
111
105
}
112
106
113
-
#endregion
114
-
115
-
#region private methods
116
-
117
107
privatestringGetJobId<TTask>()
118
108
{
119
109
returntypeof(TTask).FullName;
@@ -151,6 +141,15 @@ private void ValidateHourlyTaskParameters(int hours, int minute)
151
141
thrownewArgumentOutOfRangeException(nameof(hours),"Recurring tasks need to have an interval of at least 1 minute.");
152
142
}
153
143
144
+
if(hours>23)
145
+
{
146
+
thrownewArgumentOutOfRangeException(nameof(hours),"Recurring tasks with an interval of 24 hours or more should be scheduled using a daily interval instead.");
147
+
}
148
+
149
+
if(minute>59)
150
+
{
151
+
thrownewArgumentOutOfRangeException(nameof(hours),"Recurring tasks with an interval measured in hours and minutes cannot have an minute component greater than 59 minutes.");
0 commit comments