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;