Method | Description | |
---|---|---|
NMSConnector ( |
||
Quit ( ) : void | ||
SubscribeToFeeds ( ) : void |
Subscribes to the data feeds. This method will not return until the connection is dropped or quit
|
Method | Description | |
---|---|---|
CreateConsumer ( ISession session, ITopic destination, string appendedText = null ) : IMessageConsumer |
Create a message consumer to the given destination
|
|
GetConnection ( ) : IConnection |
Get a connection to the data source
|
|
GetRtPPMData ( IConnection connection, |
||
GetTrainDescriberData ( IConnection connection, |
||
GetTrainMovementData ( IConnection connection, |
||
GetVSTPData ( IConnection connection, |
||
OpenAndWaitConsumer ( ISession session, ITopic topic, string appendedText, |
open a consumer to the given endpoint. this method wont return until the cancellation token is cancelled
|
|
ParseData ( IMessage message ) : string |
attemps to read the text from a message
|
|
RaiseDataRecd ( Feed source, string text ) : void |
Raise the TrainDataRecieved event
|
|
ResubscribeMechanism ( ) : void |
tries to resubscribe to the data feed on error or connection dropping out
|
|
Subscribe ( ) : void |
subscribes to each feed
|
|
rtppm_Listener ( IMessage message ) : void |
handle a new message from the PPM Feed
|
|
tdConsumer_Listener ( IMessage message ) : void |
handle a new message from the TD Feed
|
|
tmConsumer_Listener ( IMessage message ) : void |
handle a new message from the TM Feed
|
|
vstpConsumer_Listener ( IMessage message ) : void |
handle a new message from the VSTP Feed
|
public NMSConnector ( |
||
cancellationTokenSource | /// cancellation token to cancel on error /// | |
return | System |