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

            _rediscon = ConnectionMultiplexer.Connect(settings.RedisConnectionString);
            Console.WriteLine(settings.WeatherCollectionName);
        }
        public WeatherService(IWeatherstoreDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _Weather = database.GetCollection <WeatherAppUser>(settings.WeatherCollectionName);
            _Rating  = database.GetCollection <WeatherApiRating>("WebApiRating");
        }