Table of Contents

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

Task

TrackPowerOffAsync()

Task TrackPowerOffAsync()

Returns

Task

TrackPowerOnAsync()

Task TrackPowerOnAsync()

Returns

Task

Events

TrackPowerChanged

Raised when track power is switched on (true) or off (false).

event EventHandler<bool>? TrackPowerChanged

Event Type

EventHandler<bool>