HealthCheck 3.1.3: Change services.AddHealthChecksUI() to services.AddHealthChecksUI().AddInMemoryStorage()
biapar opened this issue · 3 comments
If you upgrade HealthCheck to 3.1.3
you have to change the class class RegisterHealthChecks : IServiceRegistration
string DbConnectionString = config.GetConnectionString("HealthCheckDatabaseConnectionString");
services.AddHealthChecksUI().AddInMemoryStorage();
//.AddSqliteStorage(DbConnectionString);
Is the DB file actually ever used? Can't see that HealthCheckDatabaseConnectionString is ever used (but still cause an error if left remaining in the appsettings.json, so maybe its some indirect loading).
The HealthCheckDatabaseConnectionString was the original.
Yes, but it does not seem to be used in the original code?
Edit:
Seems like the DB is created on startup if it does not exist using the HealthCheckDatabaseConnectionString, if not present in appsettings, default name will be used. Probably nothing specific for this project though.