BusStateChangedEventArgs Class¶
Event args for StateChanged (SRS FR-RAW-051): carries both the previous and the newly-observed BusState so a subscriber can react to the specific transition (e.g. only abort on entering BusState.BusOff, only resume on leaving it).
Inheritance Object → EventArgs → BusStateChangedEventArgs
Constructors¶
BusStateChangedEventArgs(BusState, BusState) Constructor¶
Creates the args for a transition from previous to current.
public BusStateChangedEventArgs(CanKit.Abstractions.API.Common.Definitions.BusState previous, CanKit.Abstractions.API.Common.Definitions.BusState current);
Parameters¶
previous BusState
current BusState
Properties¶
BusStateChangedEventArgs.Current Property¶
The state observed now, which differs from Previous.
Property Value¶
BusStateChangedEventArgs.Previous Property¶
The last state observed before this transition.