Interface ICommandStation
- Namespace
- CommandStation
- Assembly
- CommandStation.Abstractions.dll
A protocol-agnostic connection to a model-railway command station. Feature operations live on
the capability interfaces (ILocoControl, IAccessoryControl,
ITrackPowerControl, ISystemInfoProvider); a station implements only
the capabilities it supports, so consumers test for them (e.g. station is ILocoControl).
public interface ICommandStation
Properties
IsConnected
bool IsConnected { get; }
Property Value
Methods
ConnectAsync()
Task ConnectAsync()
Returns
DisconnectAsync()
Task DisconnectAsync()
Returns
Events
ConnectionChanged
event EventHandler<ConnectionChangedEventArgs>? ConnectionChanged