We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1c18e8 commit 74db099Copy full SHA for 74db099
CHANGELOG.md
@@ -6,6 +6,10 @@ All notable changes to **NCronJob** will be documented in this file. The project
6
7
## [Unreleased]
8
9
+### Fixed
10
+
11
+- Dependent jobs where registered as singleton instead of scoped. Fixed by [@linkdotnet](https://github.com/linkdotnet).
12
13
## [2.8.3] - 2024-06-20
14
15
### Changed
src/NCronJob/Configuration/Builder/NCronJobOptionBuilder.cs
@@ -366,7 +366,7 @@ public static void AddRegistration<TJob>(
366
services.TryAddSingleton(s);
367
if (s.Type != typeof(DynamicJobFactory))
368
{
369
- services.TryAddSingleton(s.Type);
+ services.TryAddScoped(s.Type);
370
}
371
});
372
jobs.ForEach(j => j.RunWhenSuccess = runWhenSuccess);
0 commit comments