From 97c05fbb1b414e728b42c9380c85b637d9c91e1d Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Fri, 8 Dec 2023 14:41:35 -0800 Subject: [PATCH] Configure OpenId routes asynchronously (#14865) --- src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs b/src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs index 1c9139f22cf..582f8cb0faf 100644 --- a/src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs +++ b/src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs @@ -198,7 +198,7 @@ public override void ConfigureServices(IServiceCollection services) }); } - public override void Configure(IApplicationBuilder app, IEndpointRouteBuilder routes, IServiceProvider serviceProvider) + public override async ValueTask ConfigureAsync(IApplicationBuilder app, IEndpointRouteBuilder routes, IServiceProvider serviceProvider) { var options = serviceProvider.GetRequiredService>().Value; @@ -209,7 +209,7 @@ public override void Configure(IApplicationBuilder app, IEndpointRouteBuilder ro defaults: new { controller = typeof(ServerConfigurationController).ControllerName(), action = nameof(ServerConfigurationController.Index) } ); - var settings = GetServerSettingsAsync().GetAwaiter().GetResult(); + var settings = await GetServerSettingsAsync(); if (settings == null) { return;