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