Exemple #1
0
 public OpenWeatherMainViewModel(
     IOpenWeatherApi openWeatherApi,
     IMvxNavigationService navigationService,
     IDialogService dialogService)
 {
     this.openWeatherApi    = openWeatherApi;
     this.navigationService = navigationService;
     this.dialogService     = dialogService;
 }
 public CurrentWeatherServiceOld(ILogger <CurrentWeatherServiceOld> logger,
                                 IOpenWeatherApi openWeatherApi,
                                 WeatherContext weatherContext,
                                 CurrentWeatherServiceOptions options)
 {
     ServiceName     = nameof(CurrentWeatherServiceOld);
     _logger         = logger;
     _openWeatherApi = openWeatherApi;
     _weatherContext = weatherContext;
     _options        = options;
     _weather        = _weatherContext.Weather;
     //var client = new MongoClient("mongodb://*****:*****@mlinke.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@mlinke@");
     //_weather = database.GetCollection<WeatherEntity>("weather");
 }