@@ -33,70 +33,6 @@ class ScheduleState
3333 /// </summary>
3434 internal ScheduleConfiguration ? ScheduleConfiguration { get ; set ; }
3535
36- /// <summary>
37- /// Updates the schedule configuration with the provided options.
38- /// </summary>
39- /// <param name="scheduleUpdateOptions">The update options to apply.</param>
40- /// <returns>A set of field names that were updated.</returns>
41- public HashSet < string > UpdateConfig ( ScheduleUpdateOptions scheduleUpdateOptions )
42- {
43- Check . NotNull ( this . ScheduleConfiguration , nameof ( this . ScheduleConfiguration ) ) ;
44- Check . NotNull ( scheduleUpdateOptions , nameof ( scheduleUpdateOptions ) ) ;
45-
46- HashSet < string > updatedFields = new HashSet < string > ( ) ;
47-
48- if ( ! string . IsNullOrEmpty ( scheduleUpdateOptions . OrchestrationName ) )
49- {
50- this . ScheduleConfiguration . OrchestrationName = scheduleUpdateOptions . OrchestrationName ;
51- updatedFields . Add ( nameof ( this . ScheduleConfiguration . OrchestrationName ) ) ;
52- }
53-
54- if ( scheduleUpdateOptions . OrchestrationInput == null )
55- {
56- this . ScheduleConfiguration . OrchestrationInput = scheduleUpdateOptions . OrchestrationInput ;
57- updatedFields . Add ( nameof ( this . ScheduleConfiguration . OrchestrationInput ) ) ;
58- }
59-
60- if ( scheduleUpdateOptions . StartAt . HasValue )
61- {
62- this . ScheduleConfiguration . StartAt = scheduleUpdateOptions . StartAt ;
63- updatedFields . Add ( nameof ( this . ScheduleConfiguration . StartAt ) ) ;
64- }
65-
66- if ( scheduleUpdateOptions . EndAt . HasValue )
67- {
68- this . ScheduleConfiguration . EndAt = scheduleUpdateOptions . EndAt ;
69- updatedFields . Add ( nameof ( this . ScheduleConfiguration . EndAt ) ) ;
70- }
71-
72- if ( scheduleUpdateOptions . Interval . HasValue )
73- {
74- this . ScheduleConfiguration . Interval = scheduleUpdateOptions . Interval ;
75- updatedFields . Add ( nameof ( this . ScheduleConfiguration . Interval ) ) ;
76- }
77-
78- if ( ! string . IsNullOrEmpty ( scheduleUpdateOptions . CronExpression ) )
79- {
80- this . ScheduleConfiguration . CronExpression = scheduleUpdateOptions . CronExpression ;
81- updatedFields . Add ( nameof ( this . ScheduleConfiguration . CronExpression ) ) ;
82- }
83-
84- if ( scheduleUpdateOptions . MaxOccurrence != 0 )
85- {
86- this . ScheduleConfiguration . MaxOccurrence = scheduleUpdateOptions . MaxOccurrence ;
87- updatedFields . Add ( nameof ( this . ScheduleConfiguration . MaxOccurrence ) ) ;
88- }
89-
90- // Only update if the customer explicitly set a value
91- if ( scheduleUpdateOptions . StartImmediatelyIfLate . HasValue )
92- {
93- this . ScheduleConfiguration . StartImmediatelyIfLate = scheduleUpdateOptions . StartImmediatelyIfLate . Value ;
94- updatedFields . Add ( nameof ( this . ScheduleConfiguration . StartImmediatelyIfLate ) ) ;
95- }
96-
97- return updatedFields ;
98- }
99-
10036 /// <summary>
10137 /// Refreshes the execution token to invalidate pending schedule operations.
10238 /// </summary>
0 commit comments