Example #1
0
            public static TimerState ReduceStopTimerAction(TimerState state, StopTimerAction action)
            {
                var timer = state.Timer;

                timer.EndTime = DateTime.Now;
                return(new TimerState(new Models.Timer()));
            }
Example #2
0
 protected async Task HandleStopTimerAction(StopTimerAction action, IDispatcher dispatcher)
 {
     dispatcher.Dispatch(new AddTimeLogItemAction(action.Timer));
 }