private void HandleSourceStateChanged(object sender, StateEnteredEventArgs <TState> args) { if (!_filterState.HasValue || args.State.Equals(_filterState.Value)) { Trip(sender, args); } }
internal static StateEnteredEventArgs <TState> ToStateEnteredArgs <TState>(this StateEnteredEventArgs args) where TState : struct { var stateArgs = new StateEnteredEventArgs <TState>() { State = args.State.ToEnum <TState>(), TransitionArgs = args.TransitionArgs == null ? new TransitionEventArgs() : args.TransitionArgs }; return(stateArgs); }
internal static StateEnteredEventArgs ToIStateEnteredArgs(this Transition transition, TripEventArgs internalArgs) { var stateArgs = new StateEnteredEventArgs() { State = transition.To, TransitionArgs = transition.ToTransitionArgs(internalArgs) }; return(stateArgs); }
private void State_EntryInitiated(object sender, StateEnteredEventArgs e) { }
private void State_EntryCompleted(object sender, StateEnteredEventArgs e) { }
private void HandleEnteringState(object sender, StateEnteredEventArgs args) { Select(); }
protected virtual void RaiseEntered(StateEnteredEventArgs args) { Entered?.Invoke(this, args); }
private void HandleStateEntered(object sender, StateEnteredEventArgs args) { Trip(sender, args); }