Photomechanics API
|
Base class for ITurntableCommand, implements common functionality. More...
Public Member Functions | |
void | Dispose () |
async Task | WaitEnterProcessingStateAsync () |
Wait for command to enter TurntableCommandStatus.Processing state asynchronously. Processing state means that turntable accepted command, started executing it and will return Success status later on. Used for lengthy processes (i.e. rotation commands). More... | |
async Task | WaitFinishAsync () |
Wait for command to finish asynchronously. More... | |
Task | WaitEnterProcessingStateAsync () |
Wait for command to enter TurntableCommandStatus.Processing state asynchronously. Processing state means that turntable accepted command, started executing it and will return Success status later on. Used for lengthy processes (i.e. rotation commands). More... | |
Task | WaitFinishAsync () |
Wait for command to finish asynchronously. More... | |
Protected Member Functions | |
TurntableCommandBase () | |
Initialized TurntableCommandBase state awaiting mechanisms. | |
Properties | |
Stopwatch | RunningTimeStopwatch [get] |
Stopwatch that is started when command created. | |
ILogger | Logger [get, set] |
Logger attached to this command. More... | |
TurntableCommandStatus | Status [get, protected set] |
Command status. More... | |
Properties inherited from ITurntableCommand | |
TurntableCommandStatus | Status [get] |
Command status. More... | |
ILogger | Logger [get] |
Logger attached to this command. More... | |
Events | |
TypedEventHandler< ITurntableCommand, TurntableCommandStatus > | StatusChanged |
Events inherited from ITurntableCommand | |
TypedEventHandler< ITurntableCommand, TurntableCommandStatus > | StatusChanged |
Occurs when command execution is finished. | |
Base class for ITurntableCommand, implements common functionality.
async Task TurntableCommandBase.WaitEnterProcessingStateAsync | ( | ) |
Wait for command to enter TurntableCommandStatus.Processing state asynchronously. Processing state means that turntable accepted command, started executing it and will return Success status later on. Used for lengthy processes (i.e. rotation commands).
Implements ITurntableCommand.
async Task TurntableCommandBase.WaitFinishAsync | ( | ) |
Wait for command to finish asynchronously.
Implements ITurntableCommand.
|
getset |
Logger attached to this command.
Implements ITurntableCommand.
|
getprotected set |
Command status.
Implements ITurntableCommand.