/// <inheritdoc/> public IState WhenStateChange(Func <EntityState?, EntityState?, bool> stateFunc) { _currentState = new StateChangedInfo { Lambda = stateFunc }; return(this); }
/// <inheritdoc/> public IState WhenStateChange(object?to = null, object?from = null, bool allChanges = false) { _currentState = new StateChangedInfo { From = from, To = to, AllChanges = allChanges }; return(this); }
public void Deconstruct(out RegisteredInfo registered, out StateChangedInfo stateChanged) { registered = Registered; stateChanged = StateChanged; }
public UserNotification(StateChangedInfo stateChanged) { StateChanged = stateChanged ?? throw new ArgumentNullException(nameof(stateChanged)); }