I have a .NET Core 3 Web API
that has some external dependencies like Azure SignalR
and Azure CosmosDb
. I have create a Monitoring Controller which I want to check if the service is healthy by for example pinging those two dependencies.
I haven't found any documentation about how to do this. I know that for example, for Table Storage
I can call a method "If table exists" so if it returns true, I know the service can communicate with that dependency.
There is a way to call those dependencies?
PS: I don't want to use 3rd party packages to perform this, I want to know if those services provide this kind of methods.