コード例 #1
0
        private void DecrementCount()
        {
            var count = this._state.Count;

            count--;
            this._state = new CounterState(count);
            BroadcastStateChange();
        }
コード例 #2
0
 public CounterStore(IActionDispatcher actionDispatcher)
 {
     _state = new CounterState(0);
     this.actionDispatcher = actionDispatcher;
     this.actionDispatcher.Subscript(HandleActions);
 }