Removed UserLogin injection in Default.razor.cs and replaced it with LayoutProcessor to enhance modularity and service-oriented architecture.
Updated RenderDynamicContent method to use the injected LayoutProcessor directly, improving testability and maintainability by adhering to dependency injection principles.
Added FluentCMS.Web.UI.DynamicRendering namespace and registered LayoutProcessor as a scoped service in ServiceExtensions.cs, facilitating its use across the application and ensuring efficient resource management per client request.
These changes signify a strategic shift towards better architecture practices by utilizing dependency injection, thereby making the application more modular, easier to test, and maintain.
UserLogin
injection inDefault.razor.cs
and replaced it withLayoutProcessor
to enhance modularity and service-oriented architecture.RenderDynamicContent
method to use the injectedLayoutProcessor
directly, improving testability and maintainability by adhering to dependency injection principles.FluentCMS.Web.UI.DynamicRendering
namespace and registeredLayoutProcessor
as a scoped service inServiceExtensions.cs
, facilitating its use across the application and ensuring efficient resource management per client request.