Skip to content

Commit

Permalink
Use AddNavigationProvider everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Sep 24, 2024
1 parent 9a6972e commit 397f652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Lombiq.BaseTheme.Samples/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public override void ConfigureServices(IServiceCollection services)
services.AddTransient<IConfigureOptions<ResourceManagementOptions>, ResourceManagementOptionsConfiguration>();

// This is a sample main menu item. See the "Front-end navigation via the "main" menu" section.
services.AddScoped<INavigationProvider, AccountNavigationProvider>();
services.AddNavigationProvider<AccountNavigationProvider>();

// This service provides configuration to the ResourceFilterMiddleware.
services.AddScoped<IResourceFilterProvider, ResourceFilters>();
Expand Down
4 changes: 2 additions & 2 deletions Lombiq.BaseTheme/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public override void ConfigureServices(IServiceCollection services)
services.AddScoped<IResourceFilterProvider, IconResourceFilter>();

PerTenantShapeTableManager.ReplaceDefaultShapeTableManager(services);
services.AddScoped<INavigationProvider, MainMenuNavigationProvider>();
services.AddNavigationProvider<MainMenuNavigationProvider>();

services.AddScoped<IPermissionProvider, BaseThemeSettingsPermissions>();
services.AddScoped<INavigationProvider, BaseThemeSettingsAdminMenu>();
services.AddNavigationProvider<BaseThemeSettingsAdminMenu>();

services.Decorate<IResourceManager, ResourceManagerDecorator>();
}
Expand Down

0 comments on commit 397f652

Please sign in to comment.