Skip to content

Commit ce6b4d6

Browse files
committed
Removed InitializeWithoutStarting
1 parent 6be0edc commit ce6b4d6

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

FluentScheduler/JobManager.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,12 @@ private static void DisposeIfNeeded(IJob job)
164164
/// </summary>
165165
/// <param name="registries">Registries of jobs to run</param>
166166
public static void Initialize(params Registry[] registries)
167-
{
168-
InitializeWithoutStarting(registries);
169-
Start();
170-
}
171-
172-
/// <summary>
173-
/// Initializes the job manager with the jobs without starting it.
174-
/// </summary>
175-
/// <param name="registries">Registries of jobs to run</param>
176-
public static void InitializeWithoutStarting(params Registry[] registries)
177167
{
178168
if (registries == null)
179169
throw new ArgumentNullException("registries");
180170

181171
CalculateNextRun(registries.SelectMany(r => r.Schedules)).ToList().ForEach(RunJob);
172+
Start();
182173
}
183174

184175
/// <summary>

0 commit comments

Comments
 (0)