Photomechanics API
Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner Class Reference

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

Public Member Functions

 LegacyMftCommandRunner (LegacyMftMessagesTransport transport)
 Construct command runner on top of the provided messages transport. More...
 
override String ToString ()
 
LegacyMftCommandBase RunCommand (LegacyMftCommandBase command)
 Run command of desired type. More...
 
void Dispose ()
 

Properties

LegacyMftMessagesTransport 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

◆ LegacyMftCommandRunner()

Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner.LegacyMftCommandRunner ( LegacyMftMessagesTransport  transport)

Construct command runner on top of the provided messages transport.

Member Function Documentation

◆ RunCommand()

LegacyMftCommandBase Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner.RunCommand ( LegacyMftCommandBase  command)

Run command of desired type.

Returns
The same command as provided.

Property Documentation

◆ Transport

LegacyMftMessagesTransport Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner.Transport
get

Underlying messages transport.