AspNetCore.Diagnostics.HealthChecks icon indicating copy to clipboard operation
AspNetCore.Diagnostics.HealthChecks copied to clipboard

Add async factory methods to health check DI methods.

Open mitchdenny opened this issue 1 year ago • 0 comments

What would you like to be added:

Factory methods on checks should allow for async callbacks. I've created a PR with some context:

https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/pull/2305

Why is this needed:

We are using these libraries in .NET Aspire and connection string information for health checks that are running in the AppHost are not available until after the container is built, and to acquire the connection string we need to make an async call. We are working around it at the moment, but we desire to simplify our code somewhat.

mitchdenny avatar Oct 14 '24 08:10 mitchdenny