Skip to content

Commit 97b152f

Browse files
authored
Use a transient lifetime
1 parent 15c3418 commit 97b152f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EntityFrameworkCore.Triggered/Extensions/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static IServiceCollection AddTriggeredDbContextPool<TContext>(this IServi
4848
serviceCollection.Replace(ServiceDescriptor.Describe(
4949
serviceType: typeof(TContext),
5050
implementationFactory: serviceProvider => SetApplicationTriggerServiceProviderAccessor(serviceDescriptor.ImplementationFactory(serviceProvider), serviceProvider),
51-
lifetime: ServiceLifetime.Scoped
51+
lifetime: ServiceLifetime.Transient
5252
));
5353
}
5454

0 commit comments

Comments
 (0)