Xabaril / BeatPulse

Liveness, health check library for ASP.NET Core Applications
Apache License 2.0
604 stars 56 forks source link

Question : Call health check from code #108

Open syn-sanket-mistry opened 5 years ago

syn-sanket-mistry commented 5 years ago

Is there any way we can call health check via controller ? e.g., calling some service from Api controller endpoint and returning result.

I want to be able to have health check available as a part of swagger api specification.

unaizorrilla commented 5 years ago

BeatPulseService is public class and you can use it https://github.com/Xabaril/BeatPulse/blob/master/src/BeatPulse/Core/BeatPulseService.cs