예제 #1
0
        public static void UpdateIpAddress(string ip)
        {
            var connectionString = IOGetter.GetDBUrl();
            var newString        = connectionString.Substring(0, 26);

            newString += ip + ":27017";
        }
예제 #2
0
        public static void SetupConnection(string db = "TournamentData")
        {
            var connectionString = IOGetter.GetDBUrl();

            Client       = new MongoClient(connectionString);
            AxieDatabase = Client.GetDatabase(db);
        }