public ActionWithOrigin(object action, ActionOrigin origin) { Action = action; Origin = origin; }
/// <summary> /// Dispatches the specified action to the store with the origin of the action (from current timeline, or previous one that meaning redone action) /// </summary> /// <param name="action">The action to be performed on the current state.</param> /// <param name="origin">The origin of the action.</param> private void Dispatch(object action, ActionOrigin origin) { UpdateState(Reduce(State, action)); _actionSubject.OnNext(new ActionWithOrigin(action, origin)); }
public ActionDispatchedWithOrigin(object action, ActionOrigin origin) : base(action) { Origin = origin; }