Skip to content

Commit

Permalink
Configure OpenId routes asynchronously (OrchardCMS#14865)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored and urbanit committed Mar 18, 2024
1 parent 47b6fa0 commit 9c44c9d
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 9c44c9d

Please sign in to comment.