public List<ServerDetails> GetDataBaseConnectionString(string ExchangeConnectionString)
        {
            string regKeyConnectionString =string.Empty;
            if (ExchangeConnectionString.ToUpper().Contains("SERVER"))
            {
                regKeyConnectionString = ExchangeConnectionString;
            }
            else
            {
                regKeyConnectionString =BMC.Common.Security.CryptEncode.Decrypt(ExchangeConnectionString);
            }
            List<ServerDetails> databaseCredentials = null;
            string[] DBCredentials = null;
            if (!string.IsNullOrEmpty(regKeyConnectionString))
                DBCredentials = regKeyConnectionString.Split(';');

            ServerDetails dbInfo = new ServerDetails();
            if (DBCredentials != null)
            {
                dbInfo.ServerName = DBCredentials[0].Split('=')[1].ToString();
                dbInfo.Username = DBCredentials[1].Split('=')[1].ToString();
                dbInfo.Password = DBCredentials[2].Split('=')[1].ToString();
                dbInfo.DataBase = DBCredentials[3].Split('=')[1].ToString();
                dbInfo.ConnectionTimeout = DBCredentials[4].Split('=')[1].ToString();

                databaseCredentials = new List<ServerDetails>();
                databaseCredentials.Add(dbInfo);
            }
            return databaseCredentials;
        }
        public List<ServerDetails> GetDataBaseConnectionString()
        {
            string regKeyConnectionString = GetExchangeConnectionString();
            List<ServerDetails> databaseCredentials = null;
            string[] DBCredentials = null;
            if (!string.IsNullOrEmpty(regKeyConnectionString))
                DBCredentials = regKeyConnectionString.Split(';');

            ServerDetails dbInfo = new ServerDetails();
            if (DBCredentials != null)
            {
                dbInfo.ServerName = DBCredentials[0].Split('=')[1].ToString();
                dbInfo.Username = DBCredentials[1].Split('=')[1].ToString();
                dbInfo.Password = DBCredentials[2].Split('=')[1].ToString();
                dbInfo.DataBase = DBCredentials[3].Split('=')[1].ToString();
                dbInfo.ConnectionTimeout = DBCredentials[4].Split('=')[1].ToString();

                databaseCredentials = new List<ServerDetails>();
                databaseCredentials.Add(dbInfo);
            }
            return databaseCredentials;
        }