public static string GetConnectionString(BMCCategorizedInstallationTypes installationType) { switch (installationType) { case BMCCategorizedInstallationTypes.Exchange: return(BMCRegistryHelper.GetRegKeyValueDecrypt(BMCInstallationType.ExchangeClient, string.Empty, "SQLConnect")); case BMCCategorizedInstallationTypes.Enterprise: return(BMCRegistryHelper.GetRegKeyValueDecrypt(BMCInstallationType.EnterpriseClient, "Settings", "SQLConnect")); default: throw new InvalidDataException("Registry key does not Exist. Please check if Registry key is set."); } }
public static string GetConnectionString(BMCCategorizedInstallationTypes installationType) { switch (installationType) { case BMCCategorizedInstallationTypes.Exchange: return BMCRegistryHelper.GetRegKeyValueDecrypt(BMCInstallationType.ExchangeClient, string.Empty, "SQLConnect"); case BMCCategorizedInstallationTypes.Enterprise: return BMCRegistryHelper.GetRegKeyValueDecrypt(BMCInstallationType.EnterpriseClient, "Settings", "SQLConnect"); default: throw new InvalidDataException("Registry key does not Exist. Please check if Registry key is set."); } }