Skip to content

Commit

Permalink
Merge pull request #201 from jochance/main
Browse files Browse the repository at this point in the history
Use named arguments in .AddIdentityServer() healthchecks
  • Loading branch information
skoruba authored Mar 10, 2024
2 parents 587a06f + ec1c1dd commit 371531c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public static void AddIdSHealthChecks<TConfigurationDbContext, TPersistedGrantDb
.AddDbContextCheck<TLogDbContext>("LogDbContext")
.AddDbContextCheck<TAuditLoggingDbContext>("AuditLogDbContext")
.AddDbContextCheck<TDataProtectionDbContext>("DataProtectionDbContext")
.AddIdentityServer(new Uri(identityServerUri), "Identity Server");
.AddIdentityServer(idSvrUri: new Uri(identityServerUri), name: "Identity Server");

var serviceProvider = services.BuildServiceProvider();
var scopeFactory = serviceProvider.GetRequiredService<IServiceScopeFactory>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,7 @@ private static Task OnRedirectToIdentityProvider(RedirectContext context, AdminC
.AddDbContextCheck<TLogDbContext>("LogDbContext")
.AddDbContextCheck<TAuditLoggingDbContext>("AuditLogDbContext")
.AddDbContextCheck<TDataProtectionDbContext>("DataProtectionDbContext")

.AddIdentityServer(new Uri(identityServerUri), "Identity Server");
.AddIdentityServer(idSvrUri: new Uri(identityServerUri), name: "Identity Server");

var serviceProvider = healthChecksBuilder.Services.BuildServiceProvider();
var scopeFactory = serviceProvider.GetRequiredService<IServiceScopeFactory>();
Expand Down

0 comments on commit 371531c

Please sign in to comment.