Skip to content

Commit

Permalink
Configure OpenId routes asynchronously (#14865)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Dec 8, 2023
1 parent 1ce6474 commit 97c05fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OrchardCore.Modules/OrchardCore.OpenId/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IOptions<AdminOptions>>().Value;

Expand All @@ -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;
Expand Down

0 comments on commit 97c05fb

Please sign in to comment.