예제 #1
0
 public ActionWithOrigin(object action, ActionOrigin origin)
 {
     Action = action;
     Origin = origin;
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 public ActionDispatchedWithOrigin(object action, ActionOrigin origin) : base(action)
 {
     Origin = origin;
 }