Ejemplo n.º 1
0
 public static void CounterIncrementReducer(CounterState state, IncrementAction action)
 {
     state.Count++;
 }
Ejemplo n.º 2
0
 public static IObservable <CounterState> CounterDecrementReducer(CounterState input, DecrementAction action)
 {
     return(Observable.Return(input)
            .Do(state => { state.Count -= action.Value; }));
 }