public void DecrementCount() { var count = this._state.Count; count--; this._state = new CounterState(count); BroadcastStateChange(); }
public CounterStore(IActionDispatcher actionDispatcher) { _state = new CounterState(0); this.ActionDispatcher = actionDispatcher; this.ActionDispatcher.Subscribe(HandleActions); }