public HttpResponseMessage Stats() { using (var rdcVersionChecker = new RdcVersionChecker()) { var rdcVersion = rdcVersionChecker.GetRdcVersion(); var stats = new RdcStats { CurrentVersion = rdcVersion.CurrentVersion, MinimumCompatibleAppVersion = rdcVersion.MinimumCompatibleAppVersion }; return this.GetMessageWithObject(stats, HttpStatusCode.OK); } }
private bool IsRemoteRdcCompatible(RdcStats destinationServerRdcStats) { using (var versionChecker = new RdcVersionChecker()) { var localRdcVersion = versionChecker.GetRdcVersion(); return destinationServerRdcStats.CurrentVersion >= localRdcVersion.MinimumCompatibleAppVersion; } }