In my application I need to dynamically add health checks based on registered dependencies in IServiceCollection aka services.
My plan is to iterate through services and add all necessary health checks dynamically. The issue here is, it would work only if my library that adds health checks is a very last call in the chain of services.Add so that all the dependencies are registered at that point.
Ideally I'd want to be able to add multiple results using IHealthCheck. Any ideas how I could make it all work?