Skip to content

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).

public sealed class BusStateChangedEventArgs : System.EventArgs

Inheritance ObjectEventArgs → 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.

public CanKit.Abstractions.API.Common.Definitions.BusState Current { get; }

Property Value

BusState

BusStateChangedEventArgs.Previous Property

The last state observed before this transition.

public CanKit.Abstractions.API.Common.Definitions.BusState Previous { get; }

Property Value

BusState