GetStatusResult GetStatus(GetStatusArg tArg)
tArg. Operation execution parameters.
The GetStatus operation checks repository connection status.
To execute the operation, in the tArg.metabase field specify moniker of the connection, which status should be checked.
The operation returns True if the connection exists, and False if the connection is interrupted for some reason.
Below is the example of checking repository connection status. The request contains connection moniker. The response contains whether there is the specified connection.
{
"GetStatus" :
{
"tArg" :
{
"metabase" :
{
"id" : "LFOIPCCFOCCCGOAEOPOCGIPCMLLLDJFELKPAEPFJLNBLBMNK!M"
}
}
}
}
{
"GetStatusResult" : "1"
}
public static bool CheckStatus(string mb)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetStatus()
{
tArg = new GetStatusArg()
{
metabase = new MbId() { id = mb }
}
};
// Check repository connection status
var result = somClient.GetStatus(tGet);
return result;
}
See also: