Skip to content

Commit

Permalink
Refactor scheduling service registrations.
Browse files Browse the repository at this point in the history
Removed unused and duplicate service registrations to simplify DI setup. Ensures cleaner and more maintainable code while preventing potential initialization conflicts.
  • Loading branch information
sfmskywalker committed Jan 14, 2025
1 parent 0adc3ac commit 7a08dd7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/modules/Elsa.Scheduling/Features/SchedulingFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ public override void Apply()
.AddSingleton(CronParser)
.AddScoped<ITriggerScheduler, DefaultTriggerScheduler>()
.AddScoped<IBookmarkScheduler, DefaultBookmarkScheduler>()
.AddSingleton<IScheduler, LocalScheduler>()
.AddScoped<DefaultWorkflowScheduler>()
.AddSingleton<CronosCronParser>()
.AddSingleton(CronParser)
.AddScoped(WorkflowScheduler)
.AddBackgroundTask<CreateSchedulesBackgroundTask>()
Expand Down

0 comments on commit 7a08dd7

Please sign in to comment.