Photomechanics API
Photomechanics.Photo3DStudio.TurntableControl.Mft.MftCommandRunner Class Reference

Provides methods to send commands and receive messages from turntable. More...

Public Member Functions

 MftCommandRunner (MftMessagesTransport transport)
 Construct command runner on top of the provided messages transport. More...
 
override String ToString ()
 
void StartConnectionWatchdog ()
 Begin periodically sending "get something" command. When using network transport, this keeps connection alive and provides additional disconnect detection measure. Also starts periodic checks if some command did not get response in expected time. API will self-dispose in that case. More...
 
void Dispose ()
 

Properties

MftMessagesTransport Transport [get]
 Underlying messages transport. More...
 
Boolean IsDisposed [get]
 

Events

TypedEventHandler< IDisposableExtendedDisposed
 

Detailed Description

Provides methods to send commands and receive messages from turntable.

API for handling turn table commands.

When command is sent to turn table through provided transport, it is added to internal commands list. When message is received, it's command header is compared to each of that commands and message content is dispatched to corresponding command.

When command is sent to turn table (through transport), it is added to internal commands list. When message is received, it's command header is compared to each of that commands and message content is dispatched to corresponding command.

Constructor & Destructor Documentation

◆ MftCommandRunner()

Photomechanics.Photo3DStudio.TurntableControl.Mft.MftCommandRunner.MftCommandRunner ( MftMessagesTransport  transport)

Construct command runner on top of the provided messages transport.

Member Function Documentation

◆ StartConnectionWatchdog()

void Photomechanics.Photo3DStudio.TurntableControl.Mft.MftCommandRunner.StartConnectionWatchdog ( )

Begin periodically sending "get something" command. When using network transport, this keeps connection alive and provides additional disconnect detection measure. Also starts periodic checks if some command did not get response in expected time. API will self-dispose in that case.

Property Documentation

◆ Transport

MftMessagesTransport Photomechanics.Photo3DStudio.TurntableControl.Mft.MftCommandRunner.Transport
get

Underlying messages transport.