sienar-cms / core

Apache License 2.0
0 stars 0 forks source link

Dashboard generator/menu generator lifetime is incompatible with `IUserAccessor` dependency #3

Closed christianlevesque closed 3 months ago

christianlevesque commented 3 months ago

IDashboardGenerator and IMenuGenerator are added as singletons, while they depend on the IUserAccessor, which is scoped. IDashboardGenerator and IMenuGenerator were designed to be scoped as well, but they erroneously got switched to singleton during the transition to separate repositories and the focus on ASP.NET MVC as the primary target instead of Blazor.