Skip to content

Commit

Permalink
Small optimizations for the ExtensionManager (#16382)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Mike Alhayek <[email protected]>
  • Loading branch information
gvkries and MikeAlhayek authored Jul 24, 2024
1 parent f6d5213 commit af59baa
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 162 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ public static OrchardCoreBuilder AddThemingHost(this OrchardCoreBuilder builder)
{
var services = builder.ApplicationServices;

services.AddSingleton<IExtensionDependencyStrategy, ThemeExtensionDependencyStrategy>();
services.AddSingleton<IFeatureBuilderEvents, ThemeFeatureBuilderEvents>();
services.AddTransient<IExtensionDependencyStrategy, ThemeExtensionDependencyStrategy>();
services.AddTransient<IFeatureBuilderEvents, ThemeFeatureBuilderEvents>();

return builder;
}
Expand Down
Loading

0 comments on commit af59baa

Please sign in to comment.