/// <summary> /// Gets the actual version of the server. /// </summary> public GetVersionResponse GetVersion2(GetVersionRequest request) { var response = new GetVersionResponse { Component = ProductInformation.Component, Edition = ProductInformation.Edition, VersionMajor = ProductInformation.Version.Major, VersionMinor = ProductInformation.Version.Minor, VersionBuild = ProductInformation.Version.Build, VersionRevision = ProductInformation.Version.Revision }; return response; }
/// <summary> /// Legacy version service method, which now returns the compatibility version of the server. /// </summary> public GetVersionResponse GetVersion(GetVersionRequest request) { var version = LegacyServiceSettings.Default.GetCompatibilityVersion(); var response = new GetVersionResponse { Component = ProductInformation.Component, Edition = LegacyServiceSettings.Default.CompatibilityEdition, VersionMajor = version.Major, VersionMinor = version.Minor, VersionBuild = version.Build, VersionRevision = version.Revision }; return response; }