Issues tests commands to HTTP, RDBMS, Redis and SMTP.
Issues SELECT 1
to a database server and checks for any errors.
using ConnectedLibrary;
if (Connected.Rdbms("ConnectionStringName"))
{
// Ready to go
}
Issues a PING
to a Redis server and checks for a PONG
.
using ConnectedLibrary;
if (Connected.Redis("example.org", 6379))
{
// Ready to go
}
Issues a GET
request to a HTTP server and checks for a status code in the 200 family.
if (Connected.Redis("http://example.org"))
{
// Ready to go
}
Issues a HELO
to a SMTP server and checks for a reply code of 200
, 220
or 250
.
using ConnectedLibrary;
if (Connected.Smtp("example.org", 25))
{
// Ready to go
}