Beispiel #1
0
        public GameService(IVulcanDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _games = database.GetCollection <Game>(settings.GamesCollectionName);
        }
Beispiel #2
0
        public PlayerService(IVulcanDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _players = database.GetCollection <APIPlayer>(settings.PlayersCollectionName);
        }