public async Task HandleGetWeatherForecastsAction(GetWeatherForecastsAction action, IDispatcher dispatcher) { var forecasts = await weatherService.GetUpcomingFiveDaysWeatherForecasts(); dispatcher.Dispatch(new GetWeatherForecastsResultAction(forecasts)); }
public static WeatherState ReduceGetWeatherForecastsAction(WeatherState state, GetWeatherForecastsAction action) => WeatherState.MakeLoadingState();