private static async Task <RMVersion> RetrieveRmVersion() { var versionRepo = new RMVersionRepository(options.ConnectionString); var version = await versionRepo.GetRMVersion(); if (!VersionMapping.ContainsKey(version)) { throw new UnsupportedReleaseManagementVersionException(GenerateUnsupportedVersionExceptionMessage(version)); } PrintOnlyIfVerbose($"Release Management version detected: {version} ({VersionMapping[version]})"); if (SupportedVersions[version]) { return(version.StartsWith("14.") ? RMVersion.Rm2015 : RMVersion.Rm2013); } throw new UnsupportedReleaseManagementVersionException(GenerateUnsupportedVersionExceptionMessage(version)); }
private static async Task<RMVersion> RetrieveRmVersion() { var versionRepo = new RMVersionRepository(options.ConnectionString); var version = await versionRepo.GetRMVersion(); if (!VersionMapping.ContainsKey(version)) { throw new UnsupportedReleaseManagementVersionException(GenerateUnsupportedVersionExceptionMessage(version)); } PrintOnlyIfVerbose($"Release Management version detected: {version} ({VersionMapping[version]})"); if (SupportedVersions[version]) { return version.StartsWith("14.") ? RMVersion.Rm2015 : RMVersion.Rm2013; } throw new UnsupportedReleaseManagementVersionException(GenerateUnsupportedVersionExceptionMessage(version)); }