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.
IDashboardGenerator
andIMenuGenerator
are added as singletons, while they depend on theIUserAccessor
, which is scoped.IDashboardGenerator
andIMenuGenerator
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.