diff --git a/src/JobEngine/StellaOps.Scheduler.__Libraries/StellaOps.Scheduler.Plugin.Doctor/DoctorJobPlugin.cs b/src/JobEngine/StellaOps.Scheduler.__Libraries/StellaOps.Scheduler.Plugin.Doctor/DoctorJobPlugin.cs index 0feec2109..9442dcead 100644 --- a/src/JobEngine/StellaOps.Scheduler.__Libraries/StellaOps.Scheduler.Plugin.Doctor/DoctorJobPlugin.cs +++ b/src/JobEngine/StellaOps.Scheduler.__Libraries/StellaOps.Scheduler.Plugin.Doctor/DoctorJobPlugin.cs @@ -250,7 +250,7 @@ public sealed class DoctorJobPlugin : ISchedulerJobPlugin string checkId, DateTimeOffset? from, DateTimeOffset? to, - IDoctorTrendRepository? trendRepository, + [FromServices] IDoctorTrendRepository? trendRepository, TimeProvider timeProvider) => { if (string.IsNullOrWhiteSpace(checkId)) @@ -285,7 +285,7 @@ public sealed class DoctorJobPlugin : ISchedulerJobPlugin string category, DateTimeOffset? from, DateTimeOffset? to, - IDoctorTrendRepository? trendRepository, + [FromServices] IDoctorTrendRepository? trendRepository, TimeProvider timeProvider) => { if (string.IsNullOrWhiteSpace(category)) @@ -320,7 +320,7 @@ public sealed class DoctorJobPlugin : ISchedulerJobPlugin DateTimeOffset? from, DateTimeOffset? to, double? threshold, - IDoctorTrendRepository? trendRepository, + [FromServices] IDoctorTrendRepository? trendRepository, TimeProvider timeProvider) => { if (trendRepository is null)