diff --git a/src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs b/src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs index fa8382b3eb8..0a3e41050d5 100644 --- a/src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs +++ b/src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs @@ -30,7 +30,6 @@ using OrchardCore.OpenId.Settings; using OrchardCore.OpenId.Tasks; using OrchardCore.Recipes; -using OrchardCore.Recipes.Services; using OrchardCore.Security; using OrchardCore.Security.Permissions; using OrchardCore.Settings; @@ -52,12 +51,8 @@ public override void ConfigureServices(IServiceCollection services) .UseYesSql(); }); - // Note: the following services are registered using TryAddEnumerable to prevent duplicate registrations. - services.TryAddEnumerable(new[] - { - ServiceDescriptor.Scoped(), - ServiceDescriptor.Scoped(), - }); + services.AddPermissionProvider(); + services.AddNavigationProvider(); } }