Helper classes - AquaticInformatics/aquarius-sdk-net GitHub Wiki
The Aquarius.TimeSeries.Client
namespace includes a few helper classes/methods to make your integration life simpler.
IAquariusClient.ServerVersion
The connected client contains a ServerVersion
property which describes exact version of the AQTS server to which it connected. See Version Checking for more details
using(var client = AquariusClient.CreateConnectedClient("myserver", "myuser", "mypassword"))
{
Console.WriteLine($"Connected to myserver ({client.ServerVersion})");
}
The above code would output Connected to myserver (2017.1.96.0)
when running the 17.1 GA release of AQTS.
AquariusSystemDetector
This class can be used to quickly determine the AquariusServerType of an AQTS system.
var serverType = AquariusSystemDetector.Instance.GetAquariusServerType("myserver");
Console.WriteLine($"myserver is {serverType}");
The above code would output myserver is NextGeneration
for 2014.4-or-newer, myserver is Legacy3X
for any AQTS version before 2014.4, or myserver is Unknown
if the server was powered off or otherwise not responding.