Open lurumad opened 7 years ago
This would be super useful but at the moment I have a concern with this approach. This adds a dependency on npgsql for all users of the data library, whether they are using it or not. This would only get worse if you add all the other databases in there as well.
Maybe healthcheck.Data should only use DbConnection and provide an method which allows a user to pass in that connection. Then the postgres, sqlserver, mysql extension methods can be implemented either in seperate packages and just leverages that.
I think extension packages like the loggers do it would be a better solution.
Yes, you are right!
But, Microsoft.Extensions.HealthChecks.Data could be a Nuget package also?
Cheers!
sounds good to me, I created a seperate issue about the extension idea. https://github.com/aspnet/HealthChecks/issues/14
I've added a health check for PostgreSQL.
Cheers!!!