GetDatabaseStatus()

Get current database connection status (Connected or Connection Failed)

Description

Verifies the database connectivity used by the MTAPI.

Package Details

Interface

IAppManager

Syntax

AppManager.GetDatabaseStatus()

Returns

Task<bool>

API

[GET] /api/v1/status

Returns

Boolean: Connected or not connected.

Example

var isConnected = appManager.GetDatabaseStatus(); if (!isConnected){ Response.Write("Error: No database connectivity!"); }