diff --git a/ZqUtils.Core/Extensions/Extensions.Quartz.cs b/ZqUtils.Core/Extensions/Extensions.Quartz.cs
index 0f6c0a9..1b684ff 100644
--- a/ZqUtils.Core/Extensions/Extensions.Quartz.cs
+++ b/ZqUtils.Core/Extensions/Extensions.Quartz.cs
@@ -43,12 +43,12 @@ public static class QuartzExtensions
///
///
/// Assembly过滤器
- /// 生命周期,默认:单例
+ /// 生命周期
///
public static IServiceCollection AddJobAndJobFactory(
this IServiceCollection @this,
Func filter = null,
- ServiceLifetime lifetime = ServiceLifetime.Singleton)
+ ServiceLifetime lifetime = ServiceLifetime.Transient)
{
//扫描程序集
var assemblies = PathHelper.GetAssemblies(filter: filter).ToList();
@@ -64,7 +64,7 @@ public static IServiceCollection AddJobAndJobFactory(
.AddClasses(classes => classes.AssignableTo())
.AsImplementedInterfaces()
.AsSelf()
- .WithLifetime(lifetime)
+ .WithSingletonLifetime()
.AddClasses(classes => classes.AssignableTo())
.AsImplementedInterfaces()
.AsSelf()