From fc8a5aa2069300a76f7dcb81eaa6d56a84910b30 Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Fri, 8 Dec 2023 12:29:05 -0800 Subject: [PATCH] Configure OpenId routes asynchronously --- 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;