public LandingPageViewModel(IWeatherForcastService weatherForcastService, INavigationService navigationService)
        {
            this.weatherForcastService = weatherForcastService;
            this.navigationService     = navigationService;

            searchWeatherCommand = new Command(OnSearchClickedAsync);
        }
Exemplo n.º 2
0
 public HomeController(
     ILogger <HomeController> logger,
     IWeatherForcastService weatherForcastService)
 {
     _logger = logger;
     _weatherForcastService = weatherForcastService ?? throw new ArgumentNullException(nameof(weatherForcastService));
 }
 public HomeController(ILogger <HomeController> logger, IWeatherForcastService weatherForcastService)
 {
     _logger = logger;
     _weatherForcastService = weatherForcastService;
 }
Exemplo n.º 4
0
 public WeatherForecastController(IWeatherForcastService weatherForcastService, IAppCache cache)
 {
     this._weatherForcastService = weatherForcastService;
     this._cache = cache;
 }
Exemplo n.º 5
0
 public async Task Invoke(HttpContext httpContext, IWeatherForcastService service, ILogger <CustomMiddleware> logger)
 {
     logger.LogInformation($"Middleware service {service}");
     await _next(httpContext);
 }
Exemplo n.º 6
0
 public LoadWeatherForcastBehavior(IWeatherForcastService weatherForcastService)
 {
     this.weatherForcastService = weatherForcastService;
 }
Exemplo n.º 7
0
 public WeatherController(IWeatherForcastService weatherForcastService)
 {
     this.weatherForcastService = weatherForcastService;
 }
 public WeatherForecastController(ILogger <WeatherForecastController> logger,
                                  IWeatherForcastService weatherForecastService)
 {
     _weatherForecastService = weatherForecastService;
     _logger = logger;
 }
Exemplo n.º 9
0
 public WeatherController(ILogger <WeatherController> logger, IWeatherForcastService weatherForcastService)
 {
     this.logger = logger;
     this.weatherForcastService = weatherForcastService;
 }