Ejemplo n.º 1
0
 public PlayerServices(IConfiguration configuration, MongoClient _mongoClient)
 {
     _configuration   = configuration;
     _mongoDB         = _mongoClient.GetDatabase(ConnectionUtils.MongoDatabase(_configuration));
     _mongoCollection = _mongoDB.GetCollection <PlayerRequestModel>(ConnectionUtils.MongoCollection(configuration, "MONGODB_COLLECTION_PLAYERS"));
 }
Ejemplo n.º 2
0
 public MatchServices(IConfiguration configuration, MongoClient _mongoClient)
 {
     _configuration   = configuration;
     _mongoDB         = _mongoClient.GetDatabase(ConnectionUtils.MongoDatabase(_configuration));
     _mongoCollection = _mongoDB.GetCollection <MatchRequestMongoModel>(ConnectionUtils.MongoCollection(configuration, "MONGODB_COLLECTION_MATCHES"));
 }
Ejemplo n.º 3
0
 public RefereeServices(IConfiguration configuration, MongoClient _mongoClient)
 {
     _configuration   = configuration;
     _mongoDB         = _mongoClient.GetDatabase(ConnectionUtils.MongoDatabase(_configuration));
     _mongoCollection = _mongoDB.GetCollection <RefereeRequestModel>(ConnectionUtils.MongoCollection(configuration, "MONGODB_COLLECTION_REFEREES"));
 }