Interface ITrackPowerControl
- Namespace
- CommandStation
- Assembly
- CommandStation.Abstractions.dll
Track power and global emergency stop.
public interface ITrackPowerControl
Methods
EmergencyStopAllAsync()
Stops all locomotives while leaving the track voltage on.
Task EmergencyStopAllAsync()
Returns
TrackPowerOffAsync()
Task TrackPowerOffAsync()
Returns
TrackPowerOnAsync()
Task TrackPowerOnAsync()
Returns
Events
TrackPowerChanged
Raised when track power is switched on (true) or off (false).
event EventHandler<bool>? TrackPowerChanged