C# 클래스 TrainNotifier.Common.NMS.NMSConnectionMonitor

Connection monitor on an NSM connection
상속: IDisposable
파일 보기 프로젝트 열기: blueghostuk/trainnotifier-server 1 사용 예제들

공개 메소드들

메소드 설명
AddMessageConsumer ( IMessageConsumer consumer ) : void

Add a message consumer to monitor for messages received

Dispose ( ) : void

dispose of the monitor

NMSConnectionMonitor ( IConnection connection, CancellationTokenSource cts, System.TimeSpan timeout = null ) : System

메소드 상세

AddMessageConsumer() 공개 메소드

Add a message consumer to monitor for messages received
public AddMessageConsumer ( IMessageConsumer consumer ) : void
consumer IMessageConsumer
리턴 void

Dispose() 공개 메소드

dispose of the monitor
public Dispose ( ) : void
리턴 void

NMSConnectionMonitor() 공개 메소드

public NMSConnectionMonitor ( IConnection connection, CancellationTokenSource cts, System.TimeSpan timeout = null ) : System
connection IConnection the connection to monitor for messages
cts System.Threading.CancellationTokenSource cancellation token to cancel on error or no data received
timeout System.TimeSpan timeout to wait for messages
리턴 System