Skip to content

Add async factory methods to health check DI methods. #2306

@mitchdenny

Description

@mitchdenny

What would you like to be added:

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

#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions