public async Task HandleGetWeatherForecastsAction(GetWeatherForecastsAction action, IDispatcher dispatcher)
        {
            var forecasts = await weatherService.GetUpcomingFiveDaysWeatherForecasts();

            dispatcher.Dispatch(new GetWeatherForecastsResultAction(forecasts));
        }
예제 #2
0
 public static WeatherState ReduceGetWeatherForecastsAction(WeatherState state, GetWeatherForecastsAction action) =>
 WeatherState.MakeLoadingState();