Skip to content

Commit 30a843e

Browse files
committed
SAVE
1 parent bf2ece5 commit 30a843e

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/ScheduledTasks/Models/ScheduleState.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,61 +36,61 @@ class ScheduleState
3636
/// <summary>
3737
/// Updates the schedule configuration with the provided options.
3838
/// </summary>
39-
/// <param name="scheduleConfigUpdateOptions">The update options to apply.</param>
39+
/// <param name="scheduleUpdateOptions">The update options to apply.</param>
4040
/// <returns>A set of field names that were updated.</returns>
41-
public HashSet<string> UpdateConfig(ScheduleUpdateOptions scheduleConfigUpdateOptions)
41+
public HashSet<string> UpdateConfig(ScheduleUpdateOptions scheduleUpdateOptions)
4242
{
4343
Check.NotNull(this.ScheduleConfiguration, nameof(this.ScheduleConfiguration));
44-
Check.NotNull(scheduleConfigUpdateOptions, nameof(scheduleConfigUpdateOptions));
44+
Check.NotNull(scheduleUpdateOptions, nameof(scheduleUpdateOptions));
4545

4646
HashSet<string> updatedFields = new HashSet<string>();
4747

48-
if (!string.IsNullOrEmpty(scheduleConfigUpdateOptions.OrchestrationName))
48+
if (!string.IsNullOrEmpty(scheduleUpdateOptions.OrchestrationName))
4949
{
50-
this.ScheduleConfiguration.OrchestrationName = scheduleConfigUpdateOptions.OrchestrationName;
50+
this.ScheduleConfiguration.OrchestrationName = scheduleUpdateOptions.OrchestrationName;
5151
updatedFields.Add(nameof(this.ScheduleConfiguration.OrchestrationName));
5252
}
5353

54-
if (scheduleConfigUpdateOptions.OrchestrationInput == null)
54+
if (scheduleUpdateOptions.OrchestrationInput == null)
5555
{
56-
this.ScheduleConfiguration.OrchestrationInput = scheduleConfigUpdateOptions.OrchestrationInput;
56+
this.ScheduleConfiguration.OrchestrationInput = scheduleUpdateOptions.OrchestrationInput;
5757
updatedFields.Add(nameof(this.ScheduleConfiguration.OrchestrationInput));
5858
}
5959

60-
if (scheduleConfigUpdateOptions.StartAt.HasValue)
60+
if (scheduleUpdateOptions.StartAt.HasValue)
6161
{
62-
this.ScheduleConfiguration.StartAt = scheduleConfigUpdateOptions.StartAt;
62+
this.ScheduleConfiguration.StartAt = scheduleUpdateOptions.StartAt;
6363
updatedFields.Add(nameof(this.ScheduleConfiguration.StartAt));
6464
}
6565

66-
if (scheduleConfigUpdateOptions.EndAt.HasValue)
66+
if (scheduleUpdateOptions.EndAt.HasValue)
6767
{
68-
this.ScheduleConfiguration.EndAt = scheduleConfigUpdateOptions.EndAt;
68+
this.ScheduleConfiguration.EndAt = scheduleUpdateOptions.EndAt;
6969
updatedFields.Add(nameof(this.ScheduleConfiguration.EndAt));
7070
}
7171

72-
if (scheduleConfigUpdateOptions.Interval.HasValue)
72+
if (scheduleUpdateOptions.Interval.HasValue)
7373
{
74-
this.ScheduleConfiguration.Interval = scheduleConfigUpdateOptions.Interval;
74+
this.ScheduleConfiguration.Interval = scheduleUpdateOptions.Interval;
7575
updatedFields.Add(nameof(this.ScheduleConfiguration.Interval));
7676
}
7777

78-
if (!string.IsNullOrEmpty(scheduleConfigUpdateOptions.CronExpression))
78+
if (!string.IsNullOrEmpty(scheduleUpdateOptions.CronExpression))
7979
{
80-
this.ScheduleConfiguration.CronExpression = scheduleConfigUpdateOptions.CronExpression;
80+
this.ScheduleConfiguration.CronExpression = scheduleUpdateOptions.CronExpression;
8181
updatedFields.Add(nameof(this.ScheduleConfiguration.CronExpression));
8282
}
8383

84-
if (scheduleConfigUpdateOptions.MaxOccurrence != 0)
84+
if (scheduleUpdateOptions.MaxOccurrence != 0)
8585
{
86-
this.ScheduleConfiguration.MaxOccurrence = scheduleConfigUpdateOptions.MaxOccurrence;
86+
this.ScheduleConfiguration.MaxOccurrence = scheduleUpdateOptions.MaxOccurrence;
8787
updatedFields.Add(nameof(this.ScheduleConfiguration.MaxOccurrence));
8888
}
8989

9090
// Only update if the customer explicitly set a value
91-
if (scheduleConfigUpdateOptions.StartImmediatelyIfLate.HasValue)
91+
if (scheduleUpdateOptions.StartImmediatelyIfLate.HasValue)
9292
{
93-
this.ScheduleConfiguration.StartImmediatelyIfLate = scheduleConfigUpdateOptions.StartImmediatelyIfLate.Value;
93+
this.ScheduleConfiguration.StartImmediatelyIfLate = scheduleUpdateOptions.StartImmediatelyIfLate.Value;
9494
updatedFields.Add(nameof(this.ScheduleConfiguration.StartImmediatelyIfLate));
9595
}
9696

0 commit comments

Comments
 (0)