LoconetServiceRxPacketOnSyncThread Event |
Occurs when a Loconet packet is received.
Namespace:
RRAutoLib.Loconet
Assembly:
RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Remarks
Methods registered with this event will execute on the thread associated with the dispather specified by the
SyncContext property.
This is the prefered event over the alternative
RxPacketOnWorkerThread because you can synchronize this event with your UI objects for thread safety.
ExamplesSee the
Start method for a code example.
See Also