Table of Contents

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

bool

Methods

ConnectAsync()

Task ConnectAsync()

Returns

Task

DisconnectAsync()

Task DisconnectAsync()

Returns

Task

Events

ConnectionChanged

event EventHandler<ConnectionChangedEventArgs>? ConnectionChanged

Event Type

EventHandler<ConnectionChangedEventArgs>