Пример #1
0
        public bool StartCassandraSession(string[] cassandraServerIPList, string username, string pwd)
        {
            try
            {
                if (cassandraSessionMgr != null)
                {
                    cassandraSessionMgr = new CassandraSessionManager();
                }

                if (cassandraServerIPList.Any())
                {
                    ipAddressList = cassandraServerIPList;
                }

                if (!ipAddressList.Any())
                {
                    log.Info("M:- StartCassandraSession | V:- No Cassandra Server IP Found");
                    return(false);
                }

                cassandraSessionMgr.StartCassandraSession(ipAddressList, username, pwd);
            }
            catch (Exception ex)
            {
                log.Error("M:- StartCassandraSession | V:- Error while Starting Cassandra Session | Ex:- ", ex);
            }

            return(ConnectionState);
        }
Пример #2
0
 public CassandraDAL()
 {
     cassandraSessionMgr = new CassandraSessionManager();
 }