private static void initDb() { string startNetType = config["startNetType"].ToString(); var connInfo = config["DBConnInfoList"].Children().Where(p => p["netType"].ToString() == startNetType).First(); remoteDbConnInfo = getDbConnInfo(connInfo, 1); localDbConnInfo = getDbConnInfo(connInfo, 2); blockDbConnInfo = getDbConnInfo(connInfo, 3); notifyDbConnInfo = getDbConnInfo(connInfo, 4); bonusDbConnInfo = getDbConnInfo(connInfo, 5); }
private static void initDb() { string startNetType = config["startNetType"].ToString(); var connInfo = config["DBConnInfoList"].Children().Where(p => p["netType"].ToString() == startNetType).First(); remoteDbConnInfo = getDbConnInfo(connInfo, 1); localDbConnInfo = getDbConnInfo(connInfo, 2); blockDbConnInfo = getDbConnInfo(connInfo, 3); analyDbConnInfo = getDbConnInfo(connInfo, 4); notifyDbConnInfo = getDbConnInfo(connInfo, 5); nelApiWalletUrl = connInfo["NELApiWalletUrl"].ToString(); nelApiUrl = connInfo["NELApiUrl"].ToString(); string flag = connInfo["fromApiFlag"].ToString(); fromApiFlag = (flag == "1" || flag.ToLower() == "true"); }