fix(DependencyInjection): change AnnotationManager registration from Scoped to Transient

This commit is contained in:
tekh 2025-11-07 15:21:36 +01:00
parent defa53fa26
commit 36b03da084

View File

@ -67,7 +67,7 @@ public static class DependencyInjection
licenseManager.RegisterKEY(license);
return licenseManager;
});
services.AddScoped(provider => {
services.AddTransient(provider => {
// Ensure LicenseManager is resolved so that its constructor is called
_ = provider.GetRequiredService<LicenseManager>();
return new AnnotationManager();