public SnapShotRepository(ISnapShotDBContext snapshotDb, IMQConnectionFactory connectionFactory, IRepository <Game, GameLookup> gameRepository) { GSTATS_EXCHANGE = "openspy.gamestats"; GSTATS_ROUTING_KEY = "snapshots"; var db = snapshotDb.GetDatabase(); collection = db.GetCollection <BsonDocument>("snapshots"); this.connectionFactory = connectionFactory; this.gameRepository = gameRepository; }
public LeaderboardRepository(IRepository <Profile, ProfileLookup> profileRepository, IRepository <Game, GameLookup> gameRepository, ISnapShotDBContext snapshotDb) { this.profileRepository = profileRepository; this.gameRepository = gameRepository; var db = snapshotDb.GetDatabase(); collection = db.GetCollection <BsonDocument>("leaderboards"); }