public int Compare(AquariusServerVersion other) { if (IsLessThan(other)) { return(-1); } if (other.IsLessThan(this)) { return(1); } return(0); }
public AquariusServerType GetAquariusServerType(string hostname) { var serverVersion = GetAquariusServerVersion(hostname); if (serverVersion == null) { return(AquariusServerType.Unknown); } if (serverVersion.IsLessThan(FirstNon3XVersion) && Minimum3XVersion.IsLessThan(serverVersion)) { return(AquariusServerType.Legacy3X); } // TODO: TSS-19 Now that we know it is an NG server, we can add a quick HTTPS-probe when hostname has no explicit scheme return(AquariusServerType.NextGeneration); }