Refactor scheduling service registrations.

Removed unused and duplicate service registrations to simplify DI setup. Ensures cleaner and more maintainable code while preventing potential initialization conflicts.
This commit is contained in:
Sipke Schoorstra 2025-01-15 00:01:26 +01:00
parent 0adc3acd59
commit 7a08dd70cb

View file

@ -45,9 +45,7 @@ public class SchedulingFeature : FeatureBase
.AddSingleton(CronParser)
.AddScoped<ITriggerScheduler, DefaultTriggerScheduler>()
.AddScoped<IBookmarkScheduler, DefaultBookmarkScheduler>()
.AddSingleton<IScheduler, LocalScheduler>()
.AddScoped<DefaultWorkflowScheduler>()
.AddSingleton<CronosCronParser>()
.AddSingleton(CronParser)
.AddScoped(WorkflowScheduler)
.AddBackgroundTask<CreateSchedulesBackgroundTask>()