Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 7097632

Browse files
author
Angelo Pirola
committed
Fix documentazione
1 parent edfce98 commit 7097632

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/NET6CustomLibrary/Docs/README-HealthChecks-MySQL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public IConfiguration Configuration { get; }
2525
public void ConfigureServices(IServiceCollection services)
2626
{
2727
var connectionString = Configuration.GetSection("ConnectionStrings").GetValue<string>("Default");
28-
services.AddMySqlHealthChecks(connectionString, "MySQL", false); //Use the True parameter if access is to be in AllowAnonymous mode
28+
services.AddMySqlHealthChecks(connectionString, "MySQL");
2929
}
3030

3131
//OMISSIS
@@ -37,7 +37,7 @@ public void Configure(WebApplication app)
3737
app.UseEndpoints(endpoints =>
3838
{
3939
endpoints.MapControllers();
40-
endpoints.AddDatabaseHealthChecks("/status");
40+
endpoints.AddDatabaseHealthChecks("/status", false); //Use the True parameter if access is to be in AllowAnonymous mode
4141
}
4242
}
4343
```

src/NET6CustomLibrary/Docs/README-HealthChecks-Postgres.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public IConfiguration Configuration { get; }
2525
public void ConfigureServices(IServiceCollection services)
2626
{
2727
var connectionString = Configuration.GetSection("ConnectionStrings").GetValue<string>("Default");
28-
services.AddPostgresHealthChecks(connectionString, "Postgres", false); //Use the True parameter if access is to be in AllowAnonymous mode
28+
services.AddPostgresHealthChecks(connectionString, "Postgres");
2929
}
3030

3131
//OMISSIS
@@ -37,7 +37,7 @@ public void Configure(WebApplication app)
3737
app.UseEndpoints(endpoints =>
3838
{
3939
endpoints.MapControllers();
40-
endpoints.AddDatabaseHealthChecks("/status");
40+
endpoints.AddDatabaseHealthChecks("/status", false); //Use the True parameter if access is to be in AllowAnonymous mode
4141
}
4242
}
4343
```

0 commit comments

Comments
 (0)