fix(DependencyInjection): change AnnotationManager registration from Scoped to Transient
This commit is contained in:
parent
defa53fa26
commit
36b03da084
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user