private void HandleActions(IAction action) { this._state = new StringState(((SetStringAction)action).Text); BroadcastStateChange(); }
public StringStore(IActionDispatcher actionDispatcher) { _state = new StringState("ciao"); this.actionDispatcher = actionDispatcher; this.actionDispatcher.Subscript(HandleActions); }